jet icon indicating copy to clipboard operation
jet copied to clipboard

[feature] libSQLsupport (turso)

Open pocorschi opened this issue 9 months ago • 2 comments
trafficstars

Is your feature request related to a problem? Please describe. I would like to be able to use turso (and libSQL) as the source for @go-jet.

Describe the solution you'd like I'm already using goose for migrations and they introduced turso support as a separate dialect. So either "turso" could be added to sources, or the dsn could accept remote paths for the sqlite such as "libsql://project.turso.io?authToken=AUTH-TOKEN"

pocorschi avatar Jan 23 '25 08:01 pocorschi

Would this PR help: https://github.com/go-jet/jet/pull/443? You open db connection manually and then pass it to generator.

go-jet avatar Jan 23 '25 13:01 go-jet

@go-jet - worked great so far. Thank you. Would be nice to not have to include it in code and just run it via cli but maybe you could consider this addition in the future. I'll try to add an entry to the docs outlining this functionality.

pocorschi avatar Jan 23 '25 15:01 pocorschi