Skip to content

Commit

Permalink
Update drizzle-orm.md (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boby900 authored Nov 8, 2024
1 parent d64cd44 commit ec7eb21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/sessions/basic-api/drizzle-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ import pg from "pg";
import { pgTable, serial, text, integer, timestamp } from "drizzle-orm/pg-core";
import { drizzle } from "drizzle-orm/node-postgres";

import type { InferSelectModel } from "drizzle-orm";

const pool = new pg.Pool();
const db = drizzle(pool);

Expand Down Expand Up @@ -76,6 +78,8 @@ import sqlite from "better-sqlite3";
import { sqliteTable, integer, text } from "drizzle-orm/sqlite-core";
import { drizzle } from "drizzle-orm/better-sqlite3";

import type { InferSelectModel } from "drizzle-orm";

const sqliteDB = sqlite(":memory:");
const db = drizzle(sqliteDB);

Expand Down

0 comments on commit ec7eb21

Please sign in to comment.