SQLite - how to handle a column that contains XML data #1547
Unanswered
rhscjohn-dev
asked this question in
Q&A
Replies: 1 comment
-
customType should not be imported from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an SQLite3 database and I am using better-sqlite3. I have multiple tables that have columns that contain XML.
Example. Table: CHANNEL has a Column: epg-mapping type: varchar(50). A sample value is
I tried defining a Custom Type but it looks like module 'drizzle-orm/better-sqlite3' has no exported member 'customType'.
Using Zod, I was able to convert the XML to an object:
Here is the Drizzle statement.
Is there a more Drizzle like way to do this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions