Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibSQL - JSON DB Type #3590

Open
ainsleyclark opened this issue Sep 8, 2024 · 0 comments
Open

LibSQL - JSON DB Type #3590

ainsleyclark opened this issue Sep 8, 2024 · 0 comments
Labels

Comments

@ainsleyclark
Copy link

What do you want to change?

Hi there,

It would be great if we can support json as an override in db_type as LibSQL and specifically providers such as Turso offer the extension. See: https://www.sqlite.org/json1.html

Currently, we have to override every column with a custom one.

func sqliteType(req *plugin.GenerateRequest, options *opts.Options, col *plugin.Column) string {
dt := strings.ToLower(sdk.DataType(col.Type))
notNull := col.NotNull || col.IsArray
emitPointersForNull := options.EmitPointersForNullTypes

Thanks in advance.

What database engines need to be changed?

SQLite

What programming language backends need to be changed?

Go

@ainsleyclark ainsleyclark added the enhancement New feature or request label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant