Inserting into columns of type Enum
Extracting literal values from Drizzle enums
mysqlEnum
. The most promising way came from inspecting the enums at runtime. I found that I could access the values, just as I wanted, at myEnum.config.enumValues
. The only problem is that Typescript declares config protected and I get type errors.`where` within `where`? confused about complex query
IS IT POSSIBLE: to use a relation field in a where clause?
Is there a way to save the generated response Type from a query?
Ordering by relation in relational query
Nested Schema, Helper Functions
types from nested relational queries
user
is?
```ts
async function getUserWithSettings(steamId: string): Promise<User> {
const user = await db.query.users.findFirst({
where: (user, { eq }) => eq(user.steamId, steamId),...drizzle-kit@win still not working. What am I doing wrong?
/Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr_blog/packages/db/drizzle.config.ts
```
import type { Config } from 'drizzle-kit'
export default {...SQLITE_ERROR: near "ilike": syntax error
Composite Primary Key from Foreign Keys
Introspect command failing
Error while push:sqlite after update
npx drizzle-kit push:sqlite
npx drizzle-kit push:sqlite
What do i do when introspection gives an error?
introspect schema generation forgets import
introspect
schema generation doesn't add import for smallint
.get() returning only one element
Cursor pagination on table using UUID as primary key
createdAt and expiresAt defaults
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow(),
expiresAt: timestamp('expires_at', { withTimezone: true }).default(sql`(now() + interval '7 days')`),
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow(),
expiresAt: timestamp('expires_at', { withTimezone: true }).default(sql`(now() + interval '7 days')`),
Delete using pg query in drizzle
Using postgres connection for cockroachdb