MCPcopy Create free account
hub / github.com/TanStack/db / main

Function main

examples/solid/todo/scripts/migrate.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const db = drizzle(pool)
18
19async function main() {
20 console.log(`Running migrations...`)
21 await migrate(db, { migrationsFolder: `./drizzle` })
22 console.log(`Migrations completed!`)
23 await pool.end()
24}
25
26main().catch((err) => {
27 console.error(`Migration failed!`, err)

Callers 1

migrate.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected