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

feat(sqlite) adding support for nullable types #2157

Conversation

aloisbarreras
Copy link

@aloisbarreras aloisbarreras commented Mar 19, 2023

It looks like sqlite does not support the syntax sqlc.narg() because it doesn't have a concept of schemas like postgres, so the engine parser fails. There are open issues (#1962 #1881) demonstrating this.

In this PR I'm proposing a slightly different syntax for nullable paramters to satisfy the sqlite language syntax: sqlc_narg. @kyleconroy let me know what you think, and I can add tests and update docs if you agree.

@aloisbarreras
Copy link
Author

Hey @kyleconroy friendly bump :) any thoughts on this?

@aloisbarreras
Copy link
Author

Hey @kyleconroy friendly bump :). There are some merge conflicts I need to fix, but I want to make sure you agree with the direction of adding sqlc_narg as a syntax before spending more time updating this PR.

@laytan
Copy link

laytan commented Apr 24, 2023

I would love something like this, also for the functions sqlc.arg and sqlc.slice, @aloisbarreras would you also add the cases for those functions if the approach is agreed with by @kyleconroy ?

@kyleconroy
Copy link
Collaborator

Closed via #2157

@kyleconroy kyleconroy closed this Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants