diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-10-16 15:31:39 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-10-16 15:31:39 +0100 |
| commit | 62a4eceab6cc1ef19ab3fd4aa42d0ae970e73fcb (patch) | |
| tree | c9fc19fc016affde2bdd53908e42b16595a18374 /examples | |
| parent | 6f392b7a68dc47811928463ee4502c9a222a0657 (diff) | |
Generate SQL scripts for database schema
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/18-database/hobgoblin.json5 | 4 | ||||
| -rw-r--r-- | examples/18-database/output/sqlite3/scripts/data/Data.sql | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/examples/18-database/hobgoblin.json5 b/examples/18-database/hobgoblin.json5 index 3b36468..8955a5d 100644 --- a/examples/18-database/hobgoblin.json5 +++ b/examples/18-database/hobgoblin.json5 @@ -3,6 +3,10 @@ langs: { }, generators: [ + { + generator: "sql-scripts", + path: "output/sqlite3/scripts", + }, ], } } diff --git a/examples/18-database/output/sqlite3/scripts/data/Data.sql b/examples/18-database/output/sqlite3/scripts/data/Data.sql new file mode 100644 index 0000000..af1060e --- /dev/null +++ b/examples/18-database/output/sqlite3/scripts/data/Data.sql @@ -0,0 +1,7 @@ +-- Generated by hobgoblin. + +CREATE TABLE authors ( + id INT, + name TEXT, + PRIMARY KEY (id) +); |
