generated comment
This commit is contained in:
parent
a63076c07c
commit
95fbafb217
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
# THIS FILE HAS BEEN GENERATED
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
|
||||||
|
|
||||||
from db import dbGetMany, dbGetOne
|
from db import dbGetMany, dbGetOne
|
||||||
|
|
||||||
def get_accounts(user, token_info):
|
def get_accounts(user, token_info):
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
$GENERATED_PYTHON_COMMENT
|
||||||
|
|
||||||
from db import dbGetMany, dbGetOne
|
from db import dbGetMany, dbGetOne
|
||||||
|
|
||||||
#for $table in $tables
|
#for $table in $tables
|
||||||
|
@ -42,6 +42,15 @@ for table in schema["tables"]:
|
|||||||
column["jstype"] = 'number'
|
column["jstype"] = 'number'
|
||||||
table["selectors"] = [ y["name"] for y in sorted([ x for x in columns if "selector" in x ], key=lambda x: x["selector"])]
|
table["selectors"] = [ y["name"] for y in sorted([ x for x in columns if "selector" in x ], key=lambda x: x["selector"])]
|
||||||
|
|
||||||
|
schema["GENERATED_SQL_COMMENT"] = """
|
||||||
|
-- THIS FILE HAS BEEN GENERATED
|
||||||
|
-- DO NOT EDIT MANUALLY
|
||||||
|
"""
|
||||||
|
schema["GENERATED_PYTHON_COMMENT"] = """
|
||||||
|
# THIS FILE HAS BEEN GENERATED
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
"""
|
||||||
|
|
||||||
for f in glob.glob(args.template):
|
for f in glob.glob(args.template):
|
||||||
print(f"process {f}")
|
print(f"process {f}")
|
||||||
tmpl = Template(file=f, searchList=[schema])
|
tmpl = Template(file=f, searchList=[schema])
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
$GENERATED_SQL_COMMENT
|
||||||
|
|
||||||
#for $table in $tables
|
#for $table in $tables
|
||||||
CREATE TABLE ${table.name}_t (
|
CREATE TABLE ${table.name}_t (
|
||||||
id serial not null primary key
|
id serial not null primary key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user