Compare commits
No commits in common. "f7f763aba76e1b2e9674dac25ed21279624fd7d6" and "8b121af099d4f83853c1a5e8205e24f1c7b5f201" have entirely different histories.
f7f763aba7
...
8b121af099
34
readme.md
34
readme.md
|
|
@ -13,41 +13,9 @@
|
||||||
- GNU Make
|
- GNU Make
|
||||||
|
|
||||||
|
|
||||||
### Anweisungen
|
### Anleitung
|
||||||
|
|
||||||
- `tools/build` ausführen
|
- `tools/build` ausführen
|
||||||
|
|
||||||
|
|
||||||
## Dokumentation
|
|
||||||
|
|
||||||
Beispiel-Nutzung:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
tools/build
|
|
||||||
cd build
|
|
||||||
cat ../doc/examples/contacts.sindri.json | ./sindri -f database:sqlite
|
|
||||||
```
|
|
||||||
|
|
||||||
… erzeugt:
|
|
||||||
|
|
||||||
```sql
|
|
||||||
CREATE TABLE
|
|
||||||
`address`(
|
|
||||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
||||||
`city` VARCHAR(255) NOT NULL,
|
|
||||||
`zip` VARCHAR(255) NOT NULL,
|
|
||||||
`street` VARCHAR(255) NOT NULL
|
|
||||||
)
|
|
||||||
;
|
|
||||||
|
|
||||||
CREATE TABLE
|
|
||||||
`person`(
|
|
||||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
||||||
`prename` VARCHAR(255) NOT NULL,
|
|
||||||
`surname` VARCHAR(255) NOT NULL,
|
|
||||||
`address_id` INTEGER NOT NULL,
|
|
||||||
`email_address` VARCHAR(255) DEFAULT NULL
|
|
||||||
)
|
|
||||||
;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,6 @@ _sindri.add_output(
|
||||||
_sindri.enum_realm.other,
|
_sindri.enum_realm.other,
|
||||||
"jsonschema",
|
"jsonschema",
|
||||||
{
|
{
|
||||||
"render": (x) => Promise.resolve<string>(_sindri.outputs.other.jsonschema.render(x)),
|
"render": (x) => Promise.resolve<string>(_sindri.outputs.backend.typescript.render(x)),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue