Guide and technical reference
How to use
The local generator maps configured names, logical types, primary-key flags, and nullability to a selected SQL dialect.
- Enter a safe table name and define columns.
- Choose the database dialect and generate output.
- Review identifiers, types, keys, and every WHERE clause before execution.
Examples
- Input
users: id Long PK, name String- Output
CREATE TABLE plus INSERT/SELECT/UPDATE/DELETE and record Users
The id field is used by the current CRUD templates.
- Input
account_id Long PK- Output
DDL uses account_id as primary key; CRUD still uses WHERE id
This is a known current limitation.
- Input
name containing SQL punctuation- Output
Rejected or unsafe output requiring review
Do not execute untrusted identifiers.
Understanding the result
DDL and Java types depend on the selected mapping.
This generator creates starter text; SQL Pretty only reformats SQL.
Common errors and limitations
- Current UPDATE, SELECT, and DELETE templates assume an id column.
- Identifier quoting and every vendor type are not covered.
- Generated SQL is not executed and stays local.
Frequently asked questions
- Does it run migrations?
- No. It only produces text for review.
- Can the primary key have another name?
- DDL can mark it, but current CRUD templates still assume id.