50 lines
1.5 KiB
Python
50 lines
1.5 KiB
Python
|
#-*- coding: utf-8 -*-
|
||
|
# pylint: disable=wrong-import-order
|
||
|
|
||
|
"""The module apidb.api.route povides the Route class.
|
||
|
|
||
|
WARNING!
|
||
|
|
||
|
This file is part of the apidb package. It has been generated by the
|
||
|
command halfORM. To keep it in sync with your database structure, just rerun
|
||
|
halfORM.
|
||
|
|
||
|
More information on the half_orm library on https://github.com/collorg/halfORM.
|
||
|
|
||
|
|
||
|
DO NOT REMOVE OR MODIFY THE LINES BEGINING WITH:
|
||
|
#>>> PLACE YOUR CODE BELOW...
|
||
|
#<<< PLACE YOUR CODE ABOVE...
|
||
|
|
||
|
MAKE SURE YOU PLACE YOUR CODE BETWEEN THESE LINES OR AT THE END OF THE FILE.
|
||
|
halfORM ONLY PRESERVES THE CODE BETWEEN THESE MARKS WHEN IT IS RUN.
|
||
|
"""
|
||
|
|
||
|
from ..db_connector import base_relation_class
|
||
|
|
||
|
#>>> PLACE YOUR CODE BELLOW THIS LINE. DO NOT REMOVE THIS LINE!
|
||
|
|
||
|
#<<< PLACE YOUR CODE ABOVE THIS LINE. DO NOT REMOVE THIS LINE!
|
||
|
|
||
|
__RCLS = base_relation_class('api.route')
|
||
|
|
||
|
class Route( __RCLS):
|
||
|
"""
|
||
|
__RCLS: <class 'half_orm.relation.Table_ApiApiRoute'>
|
||
|
This class allows you to manipulate the data in the PG relation:
|
||
|
TABLE: "api"."api"."route"
|
||
|
FIELDS:
|
||
|
- path: (text) PK
|
||
|
- version: (text) PK
|
||
|
- domain: (text) PK
|
||
|
FOREIGN KEYS:
|
||
|
- _reverse_fkey_api_api_acl_path_version_domain: (path, version, domain)
|
||
|
↳ "api"."api"."acl"(path, version, domain)
|
||
|
- route_domain_fkey: (version, domain)
|
||
|
↳ "api"."api"."domain"(version, name)
|
||
|
"""
|
||
|
def __init__(self, **kwargs):
|
||
|
super(Route, self).__init__(**kwargs)
|
||
|
|
||
|
#>>> PLACE YOUR CODE BELLOW THIS LINE. DO NOT REMOVE THIS LINE!
|