Comments (1)
I very much like the WASM plugin based approach of supporting different programming languages.
I do too! The interface has worked out well for the project. I'm hoping that as WASI Preview 2 support lands in more places we'll be able to offer a much richer plugin interface to address some of the limitations. See #3433 for a good list.
does SQLC welcome community contributions of new SQL engines?
Sadly, the answer right now is no. It's not because I don't want to.
The first issue is that I have big plans for the database driver interface over the next six months. Our current database-backed analyzer is tacked onto our existing analyzer. I want to switch to a pure database analyzer, which will improve accuracy and solve many of our open bugs.
However, until that switch is made, I don't want to add additional database drivers.
The second issue is about WASM. Codegen plugins work because they don't need to talk to the network. WASM doesn't have good support for talking to databases yet, and until wazero / go-wasmtime do, we'd have to only support process-based plugins, which are difficult to distribute.
from sqlc.
Related Issues (20)
- The interface type was generated incorrectly HOT 5
- sqlc generate error parsing configuration files. sqlc.(yaml|yml) or sqlc.json: file does not exist HOT 13
- emoji in queries generate broken queries HOT 2
- Allow queries against pg_locks HOT 1
- # runtime/cgo
- Sqlc Generation Error JSONB
- Error in the documentation for transactions? HOT 1
- Bugs on bulk insert with `:copyfrom` when using same placeholder twice
- bad query param structs generated for columns allowing null HOT 1
- rpc error: code = FailedPrecondition desc = could not find existing database server for engine
- parsing of configuration file fails (sqlc.yaml)
- Non-nullable parameters generated when using overridden type + sqlc.narg + COALESCE HOT 1
- Support for Static SQL Generation with Variable JSONB Query Conditions in SQLC
- Same parameter used multiple times not respected when using PgVector with pgx (Postgres) HOT 4
- No valid nullable type for PgVector
- Renaming generated struct from a query that selects from multiple tables
- Variable Placeholder &5 Accepted Instead of $5 in SQL Queries
- sqlite analyzer sigsegv on nameless subquery in FROM
- UNNEST can't handle multiple arrays
- upsert with arg or narg doesn't work in sqlite3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlc.