aidenwallis / kysely-d1

D1 dialect for Kysely
MIT License
206 stars 12 forks source link

Add custom Introspector class to allow transactions #24

Open samlaycock opened 10 months ago

samlaycock commented 10 months ago

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 commented 5 months ago

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