Skip to content

Commit

Permalink
add planetscale mode to allow for tests with schema
Browse files Browse the repository at this point in the history
  • Loading branch information
apeng-singlestore committed Sep 14, 2024
1 parent 364cd50 commit a7738dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ beforeAll(async () => {

await client.query(`CREATE DATABASE IF NOT EXISTS drizzle;`);
await client.changeUser({ database: 'drizzle' });
db = drizzle(client, { schema, logger: ENABLE_LOGGING });
db = drizzle(client, { schema, logger: ENABLE_LOGGING, mode: 'planetscale' });
});

afterAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/tests/relational/singlestore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ beforeAll(async () => {

await client.query(`CREATE DATABASE IF NOT EXISTS drizzle;`);
await client.changeUser({ database: 'drizzle' });
db = drizzle(client, { schema, logger: ENABLE_LOGGING });
db = drizzle(client, { schema, logger: ENABLE_LOGGING, mode: "planetscale" });
});

afterAll(async () => {
Expand Down

0 comments on commit a7738dd

Please sign in to comment.