Skip to content

Use StructuredQueriesCore module name in macro expansions. #42

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

Merged
merged 1 commit into from
May 16, 2025

Conversation

mbrandonw
Copy link
Member

This is the more correct thing to do, and has the added benefit of being able to inline the macro for copy-paste for targets that do not want to use the macro.

@mbrandonw mbrandonw requested a review from stephencelis May 15, 2025 14:31
@mbrandonw mbrandonw merged commit 0b77ca6 into main May 16, 2025
2 checks passed
@mbrandonw mbrandonw deleted the qualify-names-with-structured-queries-core branch May 16, 2025 16:10
stephencelis added a commit that referenced this pull request May 26, 2025
* Add default query representations for dates and UUIDs

SQLite does not have date or UUID types, and instead can represent dates
and UUIDs in several different ways.

While this works for SQLite, other database systems _do_ have dedicated
date and UUID types, and so we should probably encode these types in
StructuredQueries' decoding and binding layers, and then SQLite drivers
(like SharingGRDB) will pick a sensible default, like ISO8601 strings
for dates, and lowercased strings for UUIDs.

Draft PR for now as we figure out if this is the right direction, and
there is plenty to do before merging (documentation, etc.).

* wip

* wip

* Use StructuredQueriesCore module name in macro expansions. (#42)

* wip

* wip;

* Update docs

* wip

* wip

---------

Co-authored-by: Brandon Williams <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants