generate stuff

This commit is contained in:
Wolfgang Hottgenroth 2021-08-29 12:50:59 +02:00
parent 2733c5fbac
commit b65b48a364
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
10 changed files with 58 additions and 2 deletions

View File

@ -1,6 +1,8 @@
# -----------------------------------------
# THIS FILE HAS BEEN GENERATED
# DO NOT EDIT MANUALLY
# -----------------------------------------
from db import dbGetMany, dbGetOne

View File

@ -1,3 +1,10 @@
# -----------------------------------------
# THIS FILE HAS BEEN GENERATED
# DO NOT EDIT MANUALLY
# -----------------------------------------
openapi: 3.0.0
info:
title: hv2-api

View File

@ -1,3 +1,5 @@
$GENERATED_YAML_COMMENT
openapi: 3.0.0
info:
title: hv2-api

View File

@ -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"])]
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
# -----------------------------------------
"""
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):

View File

@ -1,3 +1,10 @@
-- ----------------------------------------
-- THIS FILE HAS BEEN GENERATED
-- DO NOT EDIT MANUALLY
-- ----------------------------------------
CREATE TABLE account_t (
id serial not null primary key
,description varchar(128) not null

View File

@ -21,6 +21,7 @@ import { LogoutComponent } from './logout/logout.component';
import { LoginComponent } from './login/login.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatInputModule } from '@angular/material/input';
import { MyTenantsComponent } from './my-tenants/my-tenants.component';
@NgModule({
@ -30,7 +31,8 @@ import { MatInputModule } from '@angular/material/input';
MessagesComponent,
TestOutputComponent,
LogoutComponent,
LoginComponent
LoginComponent,
MyTenantsComponent
],
imports: [
BrowserModule,

View File

@ -1,3 +1,11 @@
// -----------------------------------------
// THIS FILE HAS BEEN GENERATED
// DO NOT EDIT MANUALLY
// -----------------------------------------
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';

View File

@ -1,3 +1,6 @@
$GENERATED_TS_COMMENT
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';

View File

@ -1,4 +1,11 @@
// -----------------------------------------
// THIS FILE HAS BEEN GENERATED
// DO NOT EDIT MANUALLY
// -----------------------------------------
export interface Account {
description: string
}

View File

@ -1,3 +1,5 @@
$GENERATED_TS_COMMENT
#from generateHelper import JsNameConverter
#for $table in $tables