A WASM plugin for SQLC allowing the generation of Python code.
Note
This is currently being worked on. It is far from being ready for any kind of release, let alone a stable one.
Please wait for the v1 release; before that, this plugin is likely to not work.
Every sqlc macro is supported. The supported query commands depend on the SQL driver you are using, supported commands are listed below.
Every
:batch*
command is not supported by this plugin and probably will never be.
Prepared Queries are not planned for the near future, but will be implemented sooner or later
:exec |
:execresult |
:execrows |
:execlastid |
:many |
:one |
:copyfrom |
|
---|---|---|---|---|---|---|---|
aiosqlite | yes | yes | yes | yes | yes | yes | no |
sqlite3 | yes | yes | yes | yes | yes | yes | no |
asyncpg | no | no | no | no | no | no | no |
psycopg2 | no | no | no | no | no | no | no |
mysql | no | no | no | no | no | no | no |
A roadmap of what is planned & worked on can be found here
Can be found here
Because of missing documentation about creating these plugins, this work is heavily inspired by:
Special thanks to tandemdude for anwsering my questions on discord.