Skip to content

Commit

Permalink
Address a Drizzle deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
DallasHoff committed Jul 15, 2024
1 parent 4bde5c2 commit 25ec749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/drizzle/driver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { SQLocalDrizzle } from '../../src/drizzle';
import { drizzle } from 'drizzle-orm/sqlite-proxy';
import { int, real, sqliteTable, text } from 'drizzle-orm/sqlite-core';
import { desc, eq, placeholder, relations } from 'drizzle-orm';
import { desc, eq, relations, sql as dsql } from 'drizzle-orm';

describe('drizzle driver', () => {
const { sql, driver, batchDriver } = new SQLocalDrizzle(
Expand Down Expand Up @@ -48,7 +48,7 @@ describe('drizzle driver', () => {
it('should execute queries', async () => {
const insert1Prepared = db
.insert(groceries)
.values({ name: placeholder('name') })
.values({ name: dsql.placeholder('name') })
.returning({ name: groceries.name })
.prepare();
const items = ['bread', 'milk', 'rice'];
Expand Down

0 comments on commit 25ec749

Please sign in to comment.