@sqg/sqg 0.12.0 → 0.14.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 +8 -6
- package/dist/sqg.mjs +793 -117
- package/dist/templates/java-jdbc.hbs +4 -0
- package/dist/templates/python.hbs +256 -0
- package/package.json +48 -43
package/README.md
CHANGED
|
@@ -12,8 +12,8 @@ queries with it and then generate the code from the same file.
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
14
|
- **Type-safe by design** - Generates fully-typed code with accurate column types inferred from your database
|
|
15
|
-
- **Multiple database engines** - Supports SQLite, DuckDB, and
|
|
16
|
-
- **Multiple language targets** - Generate TypeScript or
|
|
15
|
+
- **Multiple database engines** - Supports SQLite, DuckDB, and PostgreSQL
|
|
16
|
+
- **Multiple language targets** - Generate TypeScript, Java, or Python code from the same SQL files
|
|
17
17
|
- **Arrow API support** - Can generate Apache Arrow API bindings for DuckDB (Java)
|
|
18
18
|
- **DBeaver compatible** - Works seamlessly with DBeaver for database development and testing
|
|
19
19
|
- **Complex type support** - DuckDB: Handles structs, lists, and maps
|
|
@@ -129,11 +129,13 @@ console.log(user?.name);
|
|
|
129
129
|
|
|
130
130
|
| Language | Database | API | Generator | Status |
|
|
131
131
|
|----------|----------|-----|-----------|--------|
|
|
132
|
-
| TypeScript | SQLite | better-sqlite3 | `typescript/
|
|
132
|
+
| TypeScript | SQLite | better-sqlite3 | `typescript/sqlite` | Tested |
|
|
133
133
|
| TypeScript | DuckDB | @duckdb/node-api | `typescript/duckdb` | Tested |
|
|
134
|
-
| Java |
|
|
135
|
-
| Java | DuckDB | Apache Arrow | `java/duckdb
|
|
136
|
-
|
|
|
134
|
+
| Java | SQLite/DuckDB/PostgreSQL | JDBC | `java/sqlite`, `java/duckdb`, `java/postgres` | Tested |
|
|
135
|
+
| Java | DuckDB | Apache Arrow | `java/duckdb/arrow` | Tested |
|
|
136
|
+
| Python | SQLite | sqlite3 | `python/sqlite` | Tested |
|
|
137
|
+
| Python | DuckDB | duckdb | `python/duckdb` | Tested |
|
|
138
|
+
| Python | PostgreSQL | psycopg3 | `python/postgres` | Tested |
|
|
137
139
|
|
|
138
140
|
## CLI Commands
|
|
139
141
|
|