const db = drizzle(async (sql, params, method) => {
const result = await database.select(sql, params);
return {
rows: [
{
id: "1231",
name: "1231",
},
],
};
});
const results = await db
.select({
id: this.getDrizzleSchema().id,
name: this.getDrizzleSchema().name,
})
.from(this.getDrizzleSchema())
.execute();
const db = drizzle(async (sql, params, method) => {
const result = await database.select(sql, params);
return {
rows: [
{
id: "1231",
name: "1231",
},
],
};
});
const results = await db
.select({
id: this.getDrizzleSchema().id,
name: this.getDrizzleSchema().name,
})
.from(this.getDrizzleSchema())
.execute();