codyr
codyr
Explore posts from servers
DTDrizzle Team
Created by codyr on 11/22/2024 in #help
drizzle seed with postgress this error: Cannot find package '@electric-sql/pglite'
import { drizzle } from 'drizzle-orm/node-postgres'
import { reset, seed } from 'drizzle-seed'

import { user } from '../schema'
import * as schema from '../schema'

const dbUrl = process.env.NUXT_DATABASE_POSTGRES_URL as string

async function main() {
const db = drizzle(dbUrl)
await reset(db, schema)
await seed(db, { user })
}

main()
import { drizzle } from 'drizzle-orm/node-postgres'
import { reset, seed } from 'drizzle-seed'

import { user } from '../schema'
import * as schema from '../schema'

const dbUrl = process.env.NUXT_DATABASE_POSTGRES_URL as string

async function main() {
const db = drizzle(dbUrl)
await reset(db, schema)
await seed(db, { user })
}

main()
1 replies
NNuxt
Created by codyr on 12/14/2022 in #❓・help
The `compilerOptions` config option
No description
2 replies
NNuxt
Created by codyr on 11/29/2022 in #❓・help
graphql apollo - Cannot redefine property $apollo
No description
2 replies