generate stuff
This commit is contained in:
parent
2733c5fbac
commit
b65b48a364
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
|
# -----------------------------------------
|
||||||
# THIS FILE HAS BEEN GENERATED
|
# THIS FILE HAS BEEN GENERATED
|
||||||
# DO NOT EDIT MANUALLY
|
# DO NOT EDIT MANUALLY
|
||||||
|
# -----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
from db import dbGetMany, dbGetOne
|
from db import dbGetMany, dbGetOne
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
|
||||||
|
# -----------------------------------------
|
||||||
|
# THIS FILE HAS BEEN GENERATED
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# -----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: hv2-api
|
title: hv2-api
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
$GENERATED_YAML_COMMENT
|
||||||
|
|
||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: hv2-api
|
title: hv2-api
|
||||||
|
18
generate.py
18
generate.py
@ -43,12 +43,28 @@ for table in schema["tables"]:
|
|||||||
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"] = """
|
schema["GENERATED_SQL_COMMENT"] = """
|
||||||
-- THIS FILE HAS BEEN GENERATED
|
-- ----------------------------------------
|
||||||
|
-- THIS FILE HAS BEEN GENERATED
|
||||||
-- DO NOT EDIT MANUALLY
|
-- DO NOT EDIT MANUALLY
|
||||||
|
-- ----------------------------------------
|
||||||
"""
|
"""
|
||||||
schema["GENERATED_PYTHON_COMMENT"] = """
|
schema["GENERATED_PYTHON_COMMENT"] = """
|
||||||
|
# -----------------------------------------
|
||||||
# THIS FILE HAS BEEN GENERATED
|
# THIS FILE HAS BEEN GENERATED
|
||||||
# DO NOT EDIT MANUALLY
|
# DO NOT EDIT MANUALLY
|
||||||
|
# -----------------------------------------
|
||||||
|
"""
|
||||||
|
schema["GENERATED_YAML_COMMENT"] = """
|
||||||
|
# -----------------------------------------
|
||||||
|
# THIS FILE HAS BEEN GENERATED
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# -----------------------------------------
|
||||||
|
"""
|
||||||
|
schema["GENERATED_TS_COMMENT"] = """
|
||||||
|
// -----------------------------------------
|
||||||
|
// THIS FILE HAS BEEN GENERATED
|
||||||
|
// DO NOT EDIT MANUALLY
|
||||||
|
// -----------------------------------------
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for f in glob.glob(args.template, recursive=True):
|
for f in glob.glob(args.template, recursive=True):
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
|
||||||
|
-- ----------------------------------------
|
||||||
|
-- THIS FILE HAS BEEN GENERATED
|
||||||
|
-- DO NOT EDIT MANUALLY
|
||||||
|
-- ----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE account_t (
|
CREATE TABLE account_t (
|
||||||
id serial not null primary key
|
id serial not null primary key
|
||||||
,description varchar(128) not null
|
,description varchar(128) not null
|
||||||
|
@ -21,6 +21,7 @@ import { LogoutComponent } from './logout/logout.component';
|
|||||||
import { LoginComponent } from './login/login.component';
|
import { LoginComponent } from './login/login.component';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatInputModule } from '@angular/material/input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
|
import { MyTenantsComponent } from './my-tenants/my-tenants.component';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@ -30,7 +31,8 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
MessagesComponent,
|
MessagesComponent,
|
||||||
TestOutputComponent,
|
TestOutputComponent,
|
||||||
LogoutComponent,
|
LogoutComponent,
|
||||||
LoginComponent
|
LoginComponent,
|
||||||
|
MyTenantsComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// -----------------------------------------
|
||||||
|
// THIS FILE HAS BEEN GENERATED
|
||||||
|
// DO NOT EDIT MANUALLY
|
||||||
|
// -----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
$GENERATED_TS_COMMENT
|
||||||
|
|
||||||
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
|
|
||||||
|
// -----------------------------------------
|
||||||
|
// THIS FILE HAS BEEN GENERATED
|
||||||
|
// DO NOT EDIT MANUALLY
|
||||||
|
// -----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export interface Account {
|
export interface Account {
|
||||||
description: string
|
description: string
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
$GENERATED_TS_COMMENT
|
||||||
|
|
||||||
#from generateHelper import JsNameConverter
|
#from generateHelper import JsNameConverter
|
||||||
|
|
||||||
#for $table in $tables
|
#for $table in $tables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user