Skip to content

Conversation

@ImSingee
Copy link
Contributor

@ImSingee ImSingee commented Dec 9, 2024

Drizzle schema supports some "mode," which behaves like a type in the JavaScript world and persists data as other types in SQLite.

For example, when using text({mode: 'json'}), in JavaScript it's JSON, but it stores data as text in SQLite.

@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2024

🦋 Changeset detected

Latest commit: 611ad85

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@powersync/drizzle-driver Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ImSingee
Copy link
Contributor Author

ImSingee commented Dec 9, 2024

Another change in this PR: I change the code to use drrizle's [entityKind] instead of js class's .name

Reason: The JS class name is normally changed by the bundler in the production environment, this will make the code works in development mode but not in production mode

@Chriztiaan Chriztiaan merged commit a547fc6 into powersync-ja:main Dec 9, 2024
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.

3 participants