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

Add custom Introspector class to allow transactions #24

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

samlaycock
Copy link

  • I have verified my changes didn't break the example project.

Description

This dialect used the built-in Kysely SqliteIntrospector class as its introspector, which under the hood makes queries to the sqlite_master table, which in D1 is a no go - I've extended SqliteIntrospector into a D1Introspector to support using the table_list and table_info PRAGMAs to query table metadata instead.

Also, I've bumped up the version of kysely to the latest while I'm here as there were type discrepancies between 0.23.3 and 0.26.3.

@aidenwallis
Copy link
Owner

aidenwallis commented May 5, 2024

Would this be a breaking change? (Because of the kysely-d1 version bump?)

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.

None yet

2 participants