@sqg/sqg 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/sqg.mjs +1118 -651
- package/dist/templates/node-sqlite.hbs +108 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Type-safe code generation from SQL. Write SQL, get fully-typed database access c
|
|
|
6
6
|
|
|
7
7
|
SQG reads annotated `.sql` files, executes queries against real databases to introspect column types, and generates type-safe code to execute the SQL queries.
|
|
8
8
|
|
|
9
|
-
The syntax of the `.sql` file is compatible with [DBeaver](https://dbeaver.io/), this allows to develop the SQL
|
|
9
|
+
The syntax of the `.sql` file is compatible with [DBeaver](https://dbeaver.io/), this allows to develop the SQL
|
|
10
10
|
queries with it and then generate the code from the same file.
|
|
11
11
|
|
|
12
12
|
## Features
|
|
@@ -144,9 +144,14 @@ sqg init --engine duckdb # Initialize with specific database engine
|
|
|
144
144
|
sqg --validate <config> # Validate config without generating code
|
|
145
145
|
sqg --format json <config> # Output as JSON (for tooling integration)
|
|
146
146
|
sqg syntax # Show SQL annotation syntax reference
|
|
147
|
+
sqg mcp # Start MCP server for AI assistants
|
|
147
148
|
sqg --help # Show all options
|
|
148
149
|
```
|
|
149
150
|
|
|
151
|
+
## MCP Server (Model Context Protocol)
|
|
152
|
+
|
|
153
|
+
SQG includes an MCP server for AI assistants like Claude Code, Claude Desktop, and Cursor. See the [Build with AI guide](https://sqg.dev/guides/build-with-ai/) for setup instructions.
|
|
154
|
+
|
|
150
155
|
## Documentation
|
|
151
156
|
|
|
152
157
|
Full documentation at [sqg.dev](https://sqg.dev)
|