Skip to content

Conversation

Chriztiaan
Copy link
Contributor

@Chriztiaan Chriztiaan commented Nov 14, 2024

Allows the following usage for the Database type in the Drizzle package.

import { wrapPowerSyncWithDrizzle, PowerSyncSQLiteDatabase } from '@powersync/drizzle-driver';

export const drizzleDb:PowerSyncSQLiteDatabase<typeof drizzleSchema> = wrapPowerSyncWithDrizzle<typeof drizzleSchema>(db, { schema: drizzleSchema });

@changeset-bot
Copy link

changeset-bot bot commented Nov 14, 2024

🦋 Changeset detected

Latest commit: b153571

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 Patch

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

@Chriztiaan Chriztiaan merged commit 4c2a5c3 into main Nov 14, 2024
6 checks passed
@Chriztiaan Chriztiaan deleted the chore/drizzle-database-type branch November 14, 2024 15:46
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