sqlx-ts icon indicating copy to clipboard operation
sqlx-ts copied to clipboard

node.js compile-time SQL validations & type generations

Results 28 sqlx-ts issues
Sort by recently updated
recently updated
newest added

I think the library needs better error handling. I've often been stuck for quite a while with simple queries that fail with an unknown rust error. Now I am facing...

I tried installing it on windows, and there are several problems. Running `npm install -g sqlx-ts` gives an error saying unzip is required, which isn't a powershell command. I used...

When using this code: ```ts const usersQuery = await dataSource.query({ text: sql` SELECT * FROM "user" WHERE id = ANY($1) `, values: [ids], }); ``` The following types are generated:...

Hey, I love this project, thanks for your hard work! I wonder if it's possible to add any kind extensions to the CLI, like you could with Prettier or ESLint....

enhancement
good first issue

Hello! Calling `sqlx-ts` from a Node script could be very handy, so we can integrate it in broader codegen workflow. It could just take an input string and output a...

enhancement

Sorry, third issue in three days ☺️, don't wanna spam… I would like to know if you are interested in adding support for template literal expression? Use case is using...

enhancement

The command: `$ sqlx-ts . --db-type=postgres --db-host=localhost --db-port=5431 --db-user= --db-pass= && echo "Exit code is 0"` reurns: ``` [INFO] Scanning "." for SQLs with extension Ts error: internal compiler error:...

Could not run sqlx-ts when using an H2 database with the url: `jdbc:h2:tcp://localhost:9090/mem:dev;MODE=PostgreSQL`

Will this support row_to_json, json_build_object, json_agg etc in the future?