Execute is not exist on a type LibSQLDatabase

const url = env.TURSO_DB_URL
if (url === undefined) {
throw new Error('TURSO_DB_URL is not defined');
}

const authToken = env.TURSO_DB_AUTH_TOKEN
if (authToken === undefined) {
throw new Error('TURSO_DB_AUTH_TOKEN is not defined');
}
const ab = await drizzle(createClient({ url, authToken }))
c.set('db', ab.execute())

the type is LibSQLDatabase<Record<string,never>>
Was this page helpful?