janat08
Explore posts from serversDTDrizzle Team
•Created by janat08 on 9/22/2023 in #help
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>>
11 replies
DTDrizzle Team
•Created by janat08 on 9/17/2023 in #help
turso geospatial and fuzzy search using extensions
There's an option to create a database with some of the extensions enabled that are kinda barebones. I don't know how to use those to begin with much less through the ORM. https://github.com/nalgeon/sqlean/blob/main/docs/fuzzy.md
4 replies