In memory feature, drissle has?

import { drizzle } from 'drizzle-orm/better-sqlite3';
import Database from 'better-sqlite3';

const sqlite = new Database('sqlite.db');
const db = drizzle(sqlite);
import { drizzle } from 'drizzle-orm/better-sqlite3';
import Database from 'better-sqlite3';

const sqlite = new Database('sqlite.db');
const db = drizzle(sqlite);
Basically, drizzle wrap each driver like above. OTOH, Drizzle can manage db object in memory? like this:
import { drizzle } from 'drizzle-orm'

const db = drizzle() // <- in memory
import { drizzle } from 'drizzle-orm'

const db = drizzle() // <- in memory
3 Replies
Revan
Revan13mo ago
const sqlite = new Database(':memory:'); it is
roccho
rocchoOP13mo ago
Thanks only drizzle? or also use better-sqlite3?
Revan
Revan13mo ago
better-sqlite3 drizzle is not a database itself, just the code for interacting with a database
Want results from more Discord servers?
Add your server