[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-prisma-prisma-driver-adapter-implementation":3,"mdc--iofkyu-key":37,"related-repo-prisma-prisma-driver-adapter-implementation":12060,"related-org-prisma-prisma-driver-adapter-implementation":12156},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":32,"sourceUrl":35,"mdContent":36},"prisma-driver-adapter-implementation","implement Prisma driver adapters","Required reference for Prisma v7 driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter\u002FTransaction interfaces. Contains critical contract details not inferable from code examples — including the transaction lifecycle protocol, error mapping requirements, and verification checklist. Existing implementations do not replace this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"prisma","Prisma","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fprisma.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"TypeScript","typescript","tag",{"name":17,"slug":18,"type":15},"Database","database",{"name":20,"slug":21,"type":15},"ORM","orm",{"name":23,"slug":24,"type":15},"Engineering","engineering",{"name":9,"slug":8,"type":15},44,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fskills","2026-04-06T18:48:35.478693","MIT",3,[],{"repoUrl":27,"stars":26,"forks":30,"topics":33,"description":34},[],null,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fskills\u002Ftree\u002FHEAD\u002Fprisma-driver-adapter-implementation","---\nname: prisma-driver-adapter-implementation\ndescription: Required reference for Prisma v7 driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter\u002FTransaction interfaces. Contains critical contract details not inferable from code examples — including the transaction lifecycle protocol, error mapping requirements, and verification checklist. Existing implementations do not replace this skill.\nlicense: MIT\nmetadata:\n  author: Tyler Benfield\n  version: \"7.6.0\"\n---\n\n# Prisma 7 Driver Adapter Implementation Guide\n\nThis skill provides everything needed to implement a Prisma ORM v7 driver adapter for any database.\n\n## Architecture Overview\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                         PrismaClient                            │\n│                    (requires adapter factory)                   │\n└─────────────────────────────────────────────────────────────────┘\n                                │\n                                ▼\n┌─────────────────────────────────────────────────────────────────┐\n│            SqlMigrationAwareDriverAdapterFactory                │\n│   ┌─────────────────────┐    ┌─────────────────────────────┐    │\n│   │ connect()           │    │ connectToShadowDb()         │    │\n│   │ → SqlDriverAdapter  │    │ → SqlDriverAdapter          │    │\n│   └─────────────────────┘    └─────────────────────────────┘    │\n└─────────────────────────────────────────────────────────────────┘\n                                │\n                                ▼\n┌─────────────────────────────────────────────────────────────────┐\n│                      SqlDriverAdapter                           │\n│  ┌──────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │\n│  │ queryRaw()   │ │ executeRaw() │ │ startTransaction()       │ │\n│  │ → ResultSet  │ │ → number     │ │ → Transaction            │ │\n│  └──────────────┘ └──────────────┘ └──────────────────────────┘ │\n│  ┌──────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │\n│  │executeScript │ │ dispose()    │ │ getConnectionInfo()      │ │\n│  └──────────────┘ └──────────────┘ └──────────────────────────┘ │\n└─────────────────────────────────────────────────────────────────┘\n                                │\n                                ▼\n┌─────────────────────────────────────────────────────────────────┐\n│                        Transaction                              │\n│  Extends SqlQueryable + commit() + rollback() + options         │\n│  (lifecycle hooks only — Prisma sends SQL via executeRaw)       │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Required Interfaces\n\nImport from `@prisma\u002Fdriver-adapter-utils`:\n\n```typescript\nimport type {\n  ColumnType,\n  IsolationLevel,\n  SqlDriverAdapter,\n  SqlMigrationAwareDriverAdapterFactory,\n  SqlQuery,\n  SqlQueryable,\n  SqlResultSet,\n  Transaction,\n  TransactionOptions,\n  ArgType,\n  ConnectionInfo,\n  MappedError,\n} from \"@prisma\u002Fdriver-adapter-utils\";\nimport {\n  ColumnTypeEnum,\n  DriverAdapterError,\n} from \"@prisma\u002Fdriver-adapter-utils\";\n```\n\n## Interface Definitions\n\n### SqlQuery (input to queryRaw\u002FexecuteRaw)\n\n```typescript\ntype SqlQuery = {\n  sql: string; \u002F\u002F Parameterized SQL with placeholders\n  args: Array\u003Cunknown>; \u002F\u002F Bound parameter values\n  argTypes: Array\u003CArgType>; \u002F\u002F Type hints for each argument\n};\n\ntype ArgType = {\n  scalarType: ArgScalarType; \u002F\u002F 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown'\n  dbType?: string;\n  arity: \"scalar\" | \"list\";\n};\n```\n\n### SqlResultSet (output from queryRaw)\n\n```typescript\ninterface SqlResultSet {\n  columnNames: Array\u003Cstring>; \u002F\u002F Column names in order\n  columnTypes: Array\u003CColumnType>; \u002F\u002F Column types matching columnNames\n  rows: Array\u003CArray\u003Cunknown>>; \u002F\u002F Row data as arrays\n  lastInsertId?: string; \u002F\u002F For INSERT without RETURNING\n}\n```\n\n### ColumnTypeEnum values\n\n```typescript\nconst ColumnTypeEnum = {\n  Int32: 0,\n  Int64: 1,\n  Float: 2,\n  Double: 3,\n  Numeric: 4,\n  Boolean: 5,\n  Character: 6,\n  Text: 7,\n  Date: 8,\n  Time: 9,\n  DateTime: 10,\n  Json: 11,\n  Enum: 12,\n  Bytes: 13,\n  Set: 14,\n  Uuid: 15,\n  Int32Array: 64,\n  Int64Array: 65,\n  FloatArray: 66,\n  DoubleArray: 67,\n  NumericArray: 68,\n  BooleanArray: 69,\n  CharacterArray: 70,\n  TextArray: 71,\n  DateArray: 72,\n  TimeArray: 73,\n  DateTimeArray: 74,\n  JsonArray: 75,\n  EnumArray: 76,\n  BytesArray: 77,\n  UuidArray: 78,\n  UnknownNumber: 128,\n} as const;\n```\n\n### SqlDriverAdapter\n\n```typescript\ninterface SqlDriverAdapter extends SqlQueryable {\n  executeScript(script: string): Promise\u003Cvoid>;\n  startTransaction(isolationLevel?: IsolationLevel): Promise\u003CTransaction>;\n  getConnectionInfo?(): ConnectionInfo;\n  dispose(): Promise\u003Cvoid>;\n}\n```\n\n### Transaction\n\n```typescript\ninterface Transaction extends SqlQueryable {\n  readonly options: TransactionOptions;\n  commit(): Promise\u003Cvoid>;\n  rollback(): Promise\u003Cvoid>;\n}\n\ntype TransactionOptions = { usePhantomQuery: boolean };\n```\n\n### SqlMigrationAwareDriverAdapterFactory\n\n```typescript\ninterface SqlMigrationAwareDriverAdapterFactory {\n  readonly provider: \"mysql\" | \"postgres\" | \"sqlite\" | \"sqlserver\";\n  readonly adapterName: string;\n  connect(): Promise\u003CSqlDriverAdapter>;\n  connectToShadowDb(): Promise\u003CSqlDriverAdapter>;\n}\n```\n\n## Implementation Steps\n\n### Step 1: Create the Queryable base class\n\n```typescript\nclass MyQueryable\u003CTClient> implements SqlQueryable {\n  readonly provider = \"postgres\" as const; \u002F\u002F or 'sqlite' | 'mysql' | 'sqlserver'\n  readonly adapterName = \"@my-org\u002Fadapter-mydb\" as const;\n\n  constructor(protected readonly client: TClient) {}\n\n  async queryRaw(query: SqlQuery): Promise\u003CSqlResultSet> {\n    try {\n      const args = query.args.map((arg, i) =>\n        mapArg(arg, query.argTypes[i] ?? { scalarType: \"unknown\", arity: \"scalar\" })\n      );\n\n      \u002F\u002F Execute query with your driver\n      const result = await this.client.query(query.sql, args);\n\n      \u002F\u002F Extract column metadata\n      const columnNames = \u002F* get from result *\u002F;\n      const columnTypes = \u002F* map to ColumnTypeEnum *\u002F;\n\n      \u002F\u002F Map rows to ResultValue arrays\n      const rows = result.map(row => mapRow(row, columnTypes));\n\n      return { columnNames, columnTypes, rows };\n    } catch (e) {\n      this.onError(e);\n    }\n  }\n\n  async executeRaw(query: SqlQuery): Promise\u003Cnumber> {\n    try {\n      const args = query.args.map((arg, i) =>\n        mapArg(arg, query.argTypes[i] ?? { scalarType: \"unknown\", arity: \"scalar\" })\n      );\n      const result = await this.client.query(query.sql, args);\n      return result.affectedRows ?? 0;\n    } catch (e) {\n      this.onError(e);\n    }\n  }\n\n  protected onError(error: unknown): never {\n    throw new DriverAdapterError(convertDriverError(error));\n  }\n}\n```\n\n### Step 2: Create the Transaction class\n\n**Critical**: `commit()` and `rollback()` are **lifecycle hooks only**. They must NOT issue SQL. Prisma sends `COMMIT`\u002F`ROLLBACK` via `executeRaw` on the transaction object.\n\n```typescript\nclass MyTransaction extends MyQueryable\u003CTClient> implements Transaction {\n  readonly options: TransactionOptions;\n  readonly #release: () => void;\n\n  constructor(\n    client: TClient,\n    options: TransactionOptions,\n    release: () => void,\n  ) {\n    super(client);\n    this.options = options;\n    this.#release = release;\n  }\n\n  commit(): Promise\u003Cvoid> {\n    \u002F\u002F DO NOT issue COMMIT SQL here — Prisma does it via executeRaw\n    this.#release(); \u002F\u002F Release connection\u002Fresources\n    return Promise.resolve();\n  }\n\n  rollback(): Promise\u003Cvoid> {\n    \u002F\u002F DO NOT issue ROLLBACK SQL here — Prisma does it via executeRaw\n    this.#release();\n    return Promise.resolve();\n  }\n}\n```\n\n### Step 3: Create the Adapter class\n\n```typescript\nclass MyAdapter extends MyQueryable\u003CTClient> implements SqlDriverAdapter {\n  #transactionDepth = 0;\n\n  constructor(client: TClient) {\n    super(client);\n  }\n\n  async executeScript(script: string): Promise\u003Cvoid> {\n    \u002F\u002F For SQLite: split on ';' and run each statement\n    \u002F\u002F For Postgres: use multi-statement execution\n    try {\n      \u002F\u002F Implementation depends on driver capabilities\n    } catch (e) {\n      this.onError(e);\n    }\n  }\n\n  async startTransaction(\n    isolationLevel?: IsolationLevel,\n  ): Promise\u003CTransaction> {\n    \u002F\u002F Validate isolation level for your database\n    const validLevels = new Set\u003CIsolationLevel>([\n      \"READ UNCOMMITTED\",\n      \"READ COMMITTED\",\n      \"REPEATABLE READ\",\n      \"SERIALIZABLE\",\n    ]);\n\n    if (isolationLevel !== undefined && !validLevels.has(isolationLevel)) {\n      throw new DriverAdapterError({\n        kind: \"InvalidIsolationLevel\",\n        level: isolationLevel,\n      });\n    }\n\n    const options: TransactionOptions = { usePhantomQuery: false };\n\n    this.#transactionDepth += 1;\n    const depth = this.#transactionDepth;\n\n    try {\n      if (depth === 1) {\n        \u002F\u002F Issue BEGIN (with isolation level if specified)\n        const beginSql = isolationLevel\n          ? `BEGIN ISOLATION LEVEL ${isolationLevel}`\n          : \"BEGIN\";\n        await this.client.query(beginSql);\n      } else {\n        \u002F\u002F Nested: use savepoints\n        await this.client.query(`SAVEPOINT sp_${depth}`);\n      }\n    } catch (e) {\n      this.#transactionDepth -= 1;\n      this.onError(e);\n    }\n\n    const release = () => {\n      this.#transactionDepth -= 1;\n    };\n    return new MyTransaction(this.client, options, release);\n  }\n\n  getConnectionInfo(): ConnectionInfo {\n    return { supportsRelationJoins: true };\n  }\n\n  async dispose(): Promise\u003Cvoid> {\n    await this.client.close();\n  }\n}\n```\n\n### Step 4: Create the Factory class\n\n```typescript\nexport type MyAdapterConfig = {\n  url: string;\n};\n\nexport type MyAdapterOptions = {\n  shadowDatabaseUrl?: string;\n};\n\nexport class MyAdapterFactory implements SqlMigrationAwareDriverAdapterFactory {\n  readonly provider = \"postgres\" as const;\n  readonly adapterName = \"@my-org\u002Fadapter-mydb\" as const;\n\n  constructor(\n    private readonly config: MyAdapterConfig,\n    private readonly options?: MyAdapterOptions,\n  ) {}\n\n  connect(): Promise\u003CSqlDriverAdapter> {\n    return Promise.resolve(new MyAdapter(openConnection(this.config.url)));\n  }\n\n  connectToShadowDb(): Promise\u003CSqlDriverAdapter> {\n    const url = this.options?.shadowDatabaseUrl ?? this.config.url;\n    return Promise.resolve(new MyAdapter(openConnection(url)));\n  }\n}\n```\n\n## Conversion Helpers\n\n### Argument Mapping (input)\n\nConvert Prisma argument values to driver-native types:\n\n```typescript\nfunction mapArg(arg: unknown, argType: ArgType): unknown {\n  if (arg === null || arg === undefined) return null;\n\n  \u002F\u002F String → number for int columns\n  if (typeof arg === \"string\" && argType.scalarType === \"int\")\n    return Number.parseInt(arg, 10);\n\n  \u002F\u002F String → number for float columns\n  if (typeof arg === \"string\" && argType.scalarType === \"float\")\n    return Number.parseFloat(arg);\n\n  \u002F\u002F String → BigInt for bigint columns\n  if (typeof arg === \"string\" && argType.scalarType === \"bigint\")\n    return BigInt(arg);\n\n  \u002F\u002F Base64 string → Buffer for bytes columns\n  if (typeof arg === \"string\" && argType.scalarType === \"bytes\")\n    return Buffer.from(arg, \"base64\");\n\n  \u002F\u002F Boolean → 0\u002F1 for SQLite\n  if (typeof arg === \"boolean\" && \u002F* SQLite *\u002F)\n    return arg ? 1 : 0;\n\n  return arg;\n}\n```\n\n### Row Mapping (output)\n\nConvert driver result values to Prisma-expected types:\n\n```typescript\nfunction mapRow(row: unknown[], columnTypes: ColumnType[]): ResultValue[] {\n  const result: ResultValue[] = [];\n\n  for (let i = 0; i \u003C row.length; i++) {\n    const value = row[i] ?? null;\n    const colType = columnTypes[i];\n\n    if (value === null) {\n      result.push(null);\n      continue;\n    }\n\n    \u002F\u002F bigint → string for Int64 (JSON-safe)\n    if (typeof value === \"bigint\") {\n      result.push(value.toString());\n      continue;\n    }\n\n    \u002F\u002F Date → ISO 8601 string for DateTime\n    if (value instanceof Date) {\n      result.push(value.toISOString());\n      continue;\n    }\n\n    \u002F\u002F JSON objects → stringified\n    if (colType === ColumnTypeEnum.Json && typeof value === \"object\") {\n      result.push(JSON.stringify(value));\n      continue;\n    }\n\n    result.push(value as ResultValue);\n  }\n\n  return result;\n}\n```\n\n### Column Type Inference\n\nWhen the driver doesn't provide type metadata, infer from JS values:\n\n```typescript\nfunction inferColumnType(value: NonNullable\u003Cunknown>): ColumnType {\n  if (typeof value === \"boolean\") return ColumnTypeEnum.Boolean;\n  if (typeof value === \"bigint\") return ColumnTypeEnum.Int64;\n  if (value instanceof Uint8Array) return ColumnTypeEnum.Bytes;\n  if (value instanceof Date) return ColumnTypeEnum.DateTime;\n  if (Array.isArray(value)) return ColumnTypeEnum.Text; \u002F\u002F fallback\n  if (typeof value === \"object\") return ColumnTypeEnum.Json;\n  if (typeof value === \"number\") return ColumnTypeEnum.UnknownNumber;\n  return ColumnTypeEnum.Text;\n}\n```\n\n## Error Handling\n\nMap driver errors to `MappedError` for Prisma to handle correctly:\n\n```typescript\nfunction convertDriverError(error: unknown): MappedError {\n  if (error instanceof Error) {\n    \u002F\u002F Database-specific error mapping\n    const dbError = error as Error & { code?: string; errno?: number };\n\n    \u002F\u002F PostgreSQL example\n    if (dbError.code === \"23505\") {\n      return { kind: \"UniqueConstraintViolation\" };\n    }\n    if (dbError.code === \"23502\") {\n      return { kind: \"NullConstraintViolation\" };\n    }\n    if (dbError.code === \"23503\") {\n      return { kind: \"ForeignKeyConstraintViolation\" };\n    }\n    if (dbError.code === \"42P01\") {\n      return { kind: \"TableDoesNotExist\" };\n    }\n\n    \u002F\u002F SQLite example\n    if (error.name === \"SQLiteError\") {\n      return {\n        kind: \"sqlite\",\n        extendedCode: dbError.errno ?? 1,\n        message: error.message,\n      };\n    }\n\n    \u002F\u002F PostgreSQL raw error\n    if (dbError.code) {\n      return {\n        kind: \"postgres\",\n        code: dbError.code,\n        severity: \"ERROR\",\n        message: error.message,\n        detail: undefined,\n        column: undefined,\n        hint: undefined,\n      };\n    }\n  }\n\n  return { kind: \"GenericJs\", id: 0 };\n}\n```\n\n## Database-Specific Notes\n\n### SQLite\n\n- Set `safeIntegers: true` when opening the database to get `bigint` for large integers\n- Only `SERIALIZABLE` isolation level is valid\n- `executeScript`: split on `;` and run each statement individually\n- Boolean values: store as 0\u002F1, return as boolean\n\n### PostgreSQL\n\n- All standard isolation levels are valid\n- For connection pooling (PgBouncer), use `prepare: false`\n- Transactions require a dedicated connection (`reserve()` pattern)\n- `executeScript`: use multi-statement execution (`.simple()` in some drivers)\n- `int8` columns may return as string (already stringified by driver)\n- `numeric` columns return as string to preserve precision\n\n### MySQL\u002FMariaDB\n\n- Supports `READ UNCOMMITTED`, `READ COMMITTED`, `REPEATABLE READ`, `SERIALIZABLE`\n- Use `?` placeholders for parameters\n- Handle `BIGINT` as string for large values\n\n## Testing Strategy\n\n### Unit Tests (no PrismaClient)\n\nTest the adapter directly with the raw database driver:\n\n```typescript\ndescribe(\"queryRaw\", () => {\n  test(\"returns column names and types\", async () => {\n    const adapter = new MyAdapter(createTestConnection());\n    const result = await adapter.queryRaw({\n      sql: \"SELECT id, name FROM users\",\n      args: [],\n      argTypes: [],\n    });\n    expect(result.columnNames).toEqual([\"id\", \"name\"]);\n    expect(result.columnTypes[0]).toBe(ColumnTypeEnum.Int32);\n  });\n});\n\ndescribe(\"startTransaction\", () => {\n  test(\"commit persists changes\", async () => {\n    const adapter = new MyAdapter(createTestConnection());\n    const tx = await adapter.startTransaction();\n    await tx.executeRaw({\n      sql: \"INSERT INTO users (name) VALUES (?)\",\n      args: [\"Alice\"],\n      argTypes: [],\n    });\n    \u002F\u002F Prisma sends COMMIT via executeRaw\n    await tx.executeRaw({ sql: \"COMMIT\", args: [], argTypes: [] });\n    await tx.commit(); \u002F\u002F lifecycle hook only\n    \u002F\u002F Verify data persisted\n  });\n});\n```\n\n### E2E Tests (with PrismaClient)\n\nTest the full integration:\n\n```typescript\ndescribe(\"E2E\", () => {\n  let prisma: PrismaClient;\n\n  beforeEach(async () => {\n    const factory = new MyAdapterFactory({ url: TEST_DB_URL });\n    prisma = new PrismaClient({ adapter: factory });\n  });\n\n  test(\"CRUD operations\", async () => {\n    const user = await prisma.user.create({ data: { name: \"Alice\" } });\n    expect(user.id).toBeGreaterThan(0);\n\n    const found = await prisma.user.findUnique({ where: { id: user.id } });\n    expect(found?.name).toBe(\"Alice\");\n  });\n\n  test(\"transactions roll back on error\", async () => {\n    await expect(\n      prisma.$transaction(async (tx) => {\n        await tx.user.create({ data: { name: \"Bob\" } });\n        throw new Error(\"Rollback!\");\n      }),\n    ).rejects.toThrow();\n\n    expect(await prisma.user.count()).toBe(0);\n  });\n});\n```\n\n## Usage Example\n\n```typescript\nimport { PrismaClient } from \".\u002Fgenerated\u002Fprisma\u002Fclient\";\nimport { MyAdapterFactory } from \"@my-org\u002Fadapter-mydb\";\n\nconst factory = new MyAdapterFactory({\n  url: process.env.DATABASE_URL!,\n});\n\nconst prisma = new PrismaClient({ adapter: factory });\n\n\u002F\u002F Use prisma normally\nconst users = await prisma.user.findMany();\n```\n\n## Checklist\n\nBefore considering the adapter complete:\n\n- [ ] `SqlMigrationAwareDriverAdapterFactory` implemented with `connect()` and `connectToShadowDb()`\n- [ ] `SqlDriverAdapter` implements `queryRaw`, `executeRaw`, `executeScript`, `startTransaction`, `dispose`\n- [ ] `Transaction` implements `queryRaw`, `executeRaw`, `commit`, `rollback` with `options: { usePhantomQuery: false }`\n- [ ] `commit()` and `rollback()` are lifecycle hooks only (no SQL issued)\n- [ ] `startTransaction` issues `BEGIN` (depth 1) or `SAVEPOINT sp_N` (nested)\n- [ ] Argument mapping handles: string→int, string→bigint, string→float, base64→bytes\n- [ ] Row mapping handles: bigint→string, Date→ISO string, JSON→string\n- [ ] Column types correctly mapped to `ColumnTypeEnum`\n- [ ] Errors wrapped in `DriverAdapterError` with proper `MappedError` kind\n- [ ] Isolation level validation for the target database\n- [ ] Unit tests pass for queryRaw, executeRaw, executeScript, transactions\n- [ ] E2E tests pass with real PrismaClient\n",{"data":38,"body":42},{"name":4,"description":6,"license":29,"metadata":39},{"author":40,"version":41},"Tyler Benfield","7.6.0",{"type":43,"children":44},"root",[45,54,60,67,80,86,99,387,393,400,669,675,843,849,1588,1594,1783,1788,1954,1960,2154,2160,2166,3516,3522,3580,4081,4087,5544,5550,6148,6154,6160,6165,6927,6933,6938,7766,7772,7777,8262,8268,8281,9311,9317,9322,9382,9388,9460,9466,9524,9530,9536,9541,10454,10460,10465,11470,11476,11782,11788,11793,12054],{"type":46,"tag":47,"props":48,"children":50},"element","h1",{"id":49},"prisma-7-driver-adapter-implementation-guide",[51],{"type":52,"value":53},"text","Prisma 7 Driver Adapter Implementation Guide",{"type":46,"tag":55,"props":56,"children":57},"p",{},[58],{"type":52,"value":59},"This skill provides everything needed to implement a Prisma ORM v7 driver adapter for any database.",{"type":46,"tag":61,"props":62,"children":64},"h2",{"id":63},"architecture-overview",[65],{"type":52,"value":66},"Architecture Overview",{"type":46,"tag":68,"props":69,"children":73},"pre",{"className":70,"code":72,"language":52},[71],"language-text","┌─────────────────────────────────────────────────────────────────┐\n│                         PrismaClient                            │\n│                    (requires adapter factory)                   │\n└─────────────────────────────────────────────────────────────────┘\n                                │\n                                ▼\n┌─────────────────────────────────────────────────────────────────┐\n│            SqlMigrationAwareDriverAdapterFactory                │\n│   ┌─────────────────────┐    ┌─────────────────────────────┐    │\n│   │ connect()           │    │ connectToShadowDb()         │    │\n│   │ → SqlDriverAdapter  │    │ → SqlDriverAdapter          │    │\n│   └─────────────────────┘    └─────────────────────────────┘    │\n└─────────────────────────────────────────────────────────────────┘\n                                │\n                                ▼\n┌─────────────────────────────────────────────────────────────────┐\n│                      SqlDriverAdapter                           │\n│  ┌──────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │\n│  │ queryRaw()   │ │ executeRaw() │ │ startTransaction()       │ │\n│  │ → ResultSet  │ │ → number     │ │ → Transaction            │ │\n│  └──────────────┘ └──────────────┘ └──────────────────────────┘ │\n│  ┌──────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │\n│  │executeScript │ │ dispose()    │ │ getConnectionInfo()      │ │\n│  └──────────────┘ └──────────────┘ └──────────────────────────┘ │\n└─────────────────────────────────────────────────────────────────┘\n                                │\n                                ▼\n┌─────────────────────────────────────────────────────────────────┐\n│                        Transaction                              │\n│  Extends SqlQueryable + commit() + rollback() + options         │\n│  (lifecycle hooks only — Prisma sends SQL via executeRaw)       │\n└─────────────────────────────────────────────────────────────────┘\n",[74],{"type":46,"tag":75,"props":76,"children":78},"code",{"__ignoreMap":77},"",[79],{"type":52,"value":72},{"type":46,"tag":61,"props":81,"children":83},{"id":82},"required-interfaces",[84],{"type":52,"value":85},"Required Interfaces",{"type":46,"tag":55,"props":87,"children":88},{},[89,91,97],{"type":52,"value":90},"Import from ",{"type":46,"tag":75,"props":92,"children":94},{"className":93},[],[95],{"type":52,"value":96},"@prisma\u002Fdriver-adapter-utils",{"type":52,"value":98},":",{"type":46,"tag":68,"props":100,"children":103},{"className":101,"code":102,"language":14,"meta":77,"style":77},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import type {\n  ColumnType,\n  IsolationLevel,\n  SqlDriverAdapter,\n  SqlMigrationAwareDriverAdapterFactory,\n  SqlQuery,\n  SqlQueryable,\n  SqlResultSet,\n  Transaction,\n  TransactionOptions,\n  ArgType,\n  ConnectionInfo,\n  MappedError,\n} from \"@prisma\u002Fdriver-adapter-utils\";\nimport {\n  ColumnTypeEnum,\n  DriverAdapterError,\n} from \"@prisma\u002Fdriver-adapter-utils\";\n",[104],{"type":46,"tag":75,"props":105,"children":106},{"__ignoreMap":77},[107,130,145,157,170,183,196,209,222,235,248,261,274,287,321,333,346,359],{"type":46,"tag":108,"props":109,"children":112},"span",{"class":110,"line":111},"line",1,[113,119,124],{"type":46,"tag":108,"props":114,"children":116},{"style":115},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[117],{"type":52,"value":118},"import",{"type":46,"tag":108,"props":120,"children":121},{"style":115},[122],{"type":52,"value":123}," type",{"type":46,"tag":108,"props":125,"children":127},{"style":126},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[128],{"type":52,"value":129}," {\n",{"type":46,"tag":108,"props":131,"children":133},{"class":110,"line":132},2,[134,140],{"type":46,"tag":108,"props":135,"children":137},{"style":136},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[138],{"type":52,"value":139},"  ColumnType",{"type":46,"tag":108,"props":141,"children":142},{"style":126},[143],{"type":52,"value":144},",\n",{"type":46,"tag":108,"props":146,"children":147},{"class":110,"line":30},[148,153],{"type":46,"tag":108,"props":149,"children":150},{"style":136},[151],{"type":52,"value":152},"  IsolationLevel",{"type":46,"tag":108,"props":154,"children":155},{"style":126},[156],{"type":52,"value":144},{"type":46,"tag":108,"props":158,"children":160},{"class":110,"line":159},4,[161,166],{"type":46,"tag":108,"props":162,"children":163},{"style":136},[164],{"type":52,"value":165},"  SqlDriverAdapter",{"type":46,"tag":108,"props":167,"children":168},{"style":126},[169],{"type":52,"value":144},{"type":46,"tag":108,"props":171,"children":173},{"class":110,"line":172},5,[174,179],{"type":46,"tag":108,"props":175,"children":176},{"style":136},[177],{"type":52,"value":178},"  SqlMigrationAwareDriverAdapterFactory",{"type":46,"tag":108,"props":180,"children":181},{"style":126},[182],{"type":52,"value":144},{"type":46,"tag":108,"props":184,"children":186},{"class":110,"line":185},6,[187,192],{"type":46,"tag":108,"props":188,"children":189},{"style":136},[190],{"type":52,"value":191},"  SqlQuery",{"type":46,"tag":108,"props":193,"children":194},{"style":126},[195],{"type":52,"value":144},{"type":46,"tag":108,"props":197,"children":199},{"class":110,"line":198},7,[200,205],{"type":46,"tag":108,"props":201,"children":202},{"style":136},[203],{"type":52,"value":204},"  SqlQueryable",{"type":46,"tag":108,"props":206,"children":207},{"style":126},[208],{"type":52,"value":144},{"type":46,"tag":108,"props":210,"children":212},{"class":110,"line":211},8,[213,218],{"type":46,"tag":108,"props":214,"children":215},{"style":136},[216],{"type":52,"value":217},"  SqlResultSet",{"type":46,"tag":108,"props":219,"children":220},{"style":126},[221],{"type":52,"value":144},{"type":46,"tag":108,"props":223,"children":225},{"class":110,"line":224},9,[226,231],{"type":46,"tag":108,"props":227,"children":228},{"style":136},[229],{"type":52,"value":230},"  Transaction",{"type":46,"tag":108,"props":232,"children":233},{"style":126},[234],{"type":52,"value":144},{"type":46,"tag":108,"props":236,"children":238},{"class":110,"line":237},10,[239,244],{"type":46,"tag":108,"props":240,"children":241},{"style":136},[242],{"type":52,"value":243},"  TransactionOptions",{"type":46,"tag":108,"props":245,"children":246},{"style":126},[247],{"type":52,"value":144},{"type":46,"tag":108,"props":249,"children":251},{"class":110,"line":250},11,[252,257],{"type":46,"tag":108,"props":253,"children":254},{"style":136},[255],{"type":52,"value":256},"  ArgType",{"type":46,"tag":108,"props":258,"children":259},{"style":126},[260],{"type":52,"value":144},{"type":46,"tag":108,"props":262,"children":264},{"class":110,"line":263},12,[265,270],{"type":46,"tag":108,"props":266,"children":267},{"style":136},[268],{"type":52,"value":269},"  ConnectionInfo",{"type":46,"tag":108,"props":271,"children":272},{"style":126},[273],{"type":52,"value":144},{"type":46,"tag":108,"props":275,"children":277},{"class":110,"line":276},13,[278,283],{"type":46,"tag":108,"props":279,"children":280},{"style":136},[281],{"type":52,"value":282},"  MappedError",{"type":46,"tag":108,"props":284,"children":285},{"style":126},[286],{"type":52,"value":144},{"type":46,"tag":108,"props":288,"children":290},{"class":110,"line":289},14,[291,296,301,306,311,316],{"type":46,"tag":108,"props":292,"children":293},{"style":126},[294],{"type":52,"value":295},"}",{"type":46,"tag":108,"props":297,"children":298},{"style":115},[299],{"type":52,"value":300}," from",{"type":46,"tag":108,"props":302,"children":303},{"style":126},[304],{"type":52,"value":305}," \"",{"type":46,"tag":108,"props":307,"children":309},{"style":308},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[310],{"type":52,"value":96},{"type":46,"tag":108,"props":312,"children":313},{"style":126},[314],{"type":52,"value":315},"\"",{"type":46,"tag":108,"props":317,"children":318},{"style":126},[319],{"type":52,"value":320},";\n",{"type":46,"tag":108,"props":322,"children":324},{"class":110,"line":323},15,[325,329],{"type":46,"tag":108,"props":326,"children":327},{"style":115},[328],{"type":52,"value":118},{"type":46,"tag":108,"props":330,"children":331},{"style":126},[332],{"type":52,"value":129},{"type":46,"tag":108,"props":334,"children":336},{"class":110,"line":335},16,[337,342],{"type":46,"tag":108,"props":338,"children":339},{"style":136},[340],{"type":52,"value":341},"  ColumnTypeEnum",{"type":46,"tag":108,"props":343,"children":344},{"style":126},[345],{"type":52,"value":144},{"type":46,"tag":108,"props":347,"children":349},{"class":110,"line":348},17,[350,355],{"type":46,"tag":108,"props":351,"children":352},{"style":136},[353],{"type":52,"value":354},"  DriverAdapterError",{"type":46,"tag":108,"props":356,"children":357},{"style":126},[358],{"type":52,"value":144},{"type":46,"tag":108,"props":360,"children":362},{"class":110,"line":361},18,[363,367,371,375,379,383],{"type":46,"tag":108,"props":364,"children":365},{"style":126},[366],{"type":52,"value":295},{"type":46,"tag":108,"props":368,"children":369},{"style":115},[370],{"type":52,"value":300},{"type":46,"tag":108,"props":372,"children":373},{"style":126},[374],{"type":52,"value":305},{"type":46,"tag":108,"props":376,"children":377},{"style":308},[378],{"type":52,"value":96},{"type":46,"tag":108,"props":380,"children":381},{"style":126},[382],{"type":52,"value":315},{"type":46,"tag":108,"props":384,"children":385},{"style":126},[386],{"type":52,"value":320},{"type":46,"tag":61,"props":388,"children":390},{"id":389},"interface-definitions",[391],{"type":52,"value":392},"Interface Definitions",{"type":46,"tag":394,"props":395,"children":397},"h3",{"id":396},"sqlquery-input-to-queryrawexecuteraw",[398],{"type":52,"value":399},"SqlQuery (input to queryRaw\u002FexecuteRaw)",{"type":46,"tag":68,"props":401,"children":403},{"className":101,"code":402,"language":14,"meta":77,"style":77},"type SqlQuery = {\n  sql: string; \u002F\u002F Parameterized SQL with placeholders\n  args: Array\u003Cunknown>; \u002F\u002F Bound parameter values\n  argTypes: Array\u003CArgType>; \u002F\u002F Type hints for each argument\n};\n\ntype ArgType = {\n  scalarType: ArgScalarType; \u002F\u002F 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown'\n  dbType?: string;\n  arity: \"scalar\" | \"list\";\n};\n",[404],{"type":46,"tag":75,"props":405,"children":406},{"__ignoreMap":77},[407,431,460,497,531,539,548,568,594,615,662],{"type":46,"tag":108,"props":408,"children":409},{"class":110,"line":111},[410,416,422,427],{"type":46,"tag":108,"props":411,"children":413},{"style":412},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[414],{"type":52,"value":415},"type",{"type":46,"tag":108,"props":417,"children":419},{"style":418},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[420],{"type":52,"value":421}," SqlQuery",{"type":46,"tag":108,"props":423,"children":424},{"style":126},[425],{"type":52,"value":426}," =",{"type":46,"tag":108,"props":428,"children":429},{"style":126},[430],{"type":52,"value":129},{"type":46,"tag":108,"props":432,"children":433},{"class":110,"line":132},[434,440,444,449,454],{"type":46,"tag":108,"props":435,"children":437},{"style":436},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[438],{"type":52,"value":439},"  sql",{"type":46,"tag":108,"props":441,"children":442},{"style":126},[443],{"type":52,"value":98},{"type":46,"tag":108,"props":445,"children":446},{"style":418},[447],{"type":52,"value":448}," string",{"type":46,"tag":108,"props":450,"children":451},{"style":126},[452],{"type":52,"value":453},";",{"type":46,"tag":108,"props":455,"children":457},{"style":456},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[458],{"type":52,"value":459}," \u002F\u002F Parameterized SQL with placeholders\n",{"type":46,"tag":108,"props":461,"children":462},{"class":110,"line":30},[463,468,472,477,482,487,492],{"type":46,"tag":108,"props":464,"children":465},{"style":436},[466],{"type":52,"value":467},"  args",{"type":46,"tag":108,"props":469,"children":470},{"style":126},[471],{"type":52,"value":98},{"type":46,"tag":108,"props":473,"children":474},{"style":418},[475],{"type":52,"value":476}," Array",{"type":46,"tag":108,"props":478,"children":479},{"style":126},[480],{"type":52,"value":481},"\u003C",{"type":46,"tag":108,"props":483,"children":484},{"style":418},[485],{"type":52,"value":486},"unknown",{"type":46,"tag":108,"props":488,"children":489},{"style":126},[490],{"type":52,"value":491},">;",{"type":46,"tag":108,"props":493,"children":494},{"style":456},[495],{"type":52,"value":496}," \u002F\u002F Bound parameter values\n",{"type":46,"tag":108,"props":498,"children":499},{"class":110,"line":159},[500,505,509,513,517,522,526],{"type":46,"tag":108,"props":501,"children":502},{"style":436},[503],{"type":52,"value":504},"  argTypes",{"type":46,"tag":108,"props":506,"children":507},{"style":126},[508],{"type":52,"value":98},{"type":46,"tag":108,"props":510,"children":511},{"style":418},[512],{"type":52,"value":476},{"type":46,"tag":108,"props":514,"children":515},{"style":126},[516],{"type":52,"value":481},{"type":46,"tag":108,"props":518,"children":519},{"style":418},[520],{"type":52,"value":521},"ArgType",{"type":46,"tag":108,"props":523,"children":524},{"style":126},[525],{"type":52,"value":491},{"type":46,"tag":108,"props":527,"children":528},{"style":456},[529],{"type":52,"value":530}," \u002F\u002F Type hints for each argument\n",{"type":46,"tag":108,"props":532,"children":533},{"class":110,"line":172},[534],{"type":46,"tag":108,"props":535,"children":536},{"style":126},[537],{"type":52,"value":538},"};\n",{"type":46,"tag":108,"props":540,"children":541},{"class":110,"line":185},[542],{"type":46,"tag":108,"props":543,"children":545},{"emptyLinePlaceholder":544},true,[546],{"type":52,"value":547},"\n",{"type":46,"tag":108,"props":549,"children":550},{"class":110,"line":198},[551,555,560,564],{"type":46,"tag":108,"props":552,"children":553},{"style":412},[554],{"type":52,"value":415},{"type":46,"tag":108,"props":556,"children":557},{"style":418},[558],{"type":52,"value":559}," ArgType",{"type":46,"tag":108,"props":561,"children":562},{"style":126},[563],{"type":52,"value":426},{"type":46,"tag":108,"props":565,"children":566},{"style":126},[567],{"type":52,"value":129},{"type":46,"tag":108,"props":569,"children":570},{"class":110,"line":211},[571,576,580,585,589],{"type":46,"tag":108,"props":572,"children":573},{"style":436},[574],{"type":52,"value":575},"  scalarType",{"type":46,"tag":108,"props":577,"children":578},{"style":126},[579],{"type":52,"value":98},{"type":46,"tag":108,"props":581,"children":582},{"style":418},[583],{"type":52,"value":584}," ArgScalarType",{"type":46,"tag":108,"props":586,"children":587},{"style":126},[588],{"type":52,"value":453},{"type":46,"tag":108,"props":590,"children":591},{"style":456},[592],{"type":52,"value":593}," \u002F\u002F 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown'\n",{"type":46,"tag":108,"props":595,"children":596},{"class":110,"line":224},[597,602,607,611],{"type":46,"tag":108,"props":598,"children":599},{"style":436},[600],{"type":52,"value":601},"  dbType",{"type":46,"tag":108,"props":603,"children":604},{"style":126},[605],{"type":52,"value":606},"?:",{"type":46,"tag":108,"props":608,"children":609},{"style":418},[610],{"type":52,"value":448},{"type":46,"tag":108,"props":612,"children":613},{"style":126},[614],{"type":52,"value":320},{"type":46,"tag":108,"props":616,"children":617},{"class":110,"line":237},[618,623,627,631,636,640,645,649,654,658],{"type":46,"tag":108,"props":619,"children":620},{"style":436},[621],{"type":52,"value":622},"  arity",{"type":46,"tag":108,"props":624,"children":625},{"style":126},[626],{"type":52,"value":98},{"type":46,"tag":108,"props":628,"children":629},{"style":126},[630],{"type":52,"value":305},{"type":46,"tag":108,"props":632,"children":633},{"style":308},[634],{"type":52,"value":635},"scalar",{"type":46,"tag":108,"props":637,"children":638},{"style":126},[639],{"type":52,"value":315},{"type":46,"tag":108,"props":641,"children":642},{"style":126},[643],{"type":52,"value":644}," |",{"type":46,"tag":108,"props":646,"children":647},{"style":126},[648],{"type":52,"value":305},{"type":46,"tag":108,"props":650,"children":651},{"style":308},[652],{"type":52,"value":653},"list",{"type":46,"tag":108,"props":655,"children":656},{"style":126},[657],{"type":52,"value":315},{"type":46,"tag":108,"props":659,"children":660},{"style":126},[661],{"type":52,"value":320},{"type":46,"tag":108,"props":663,"children":664},{"class":110,"line":250},[665],{"type":46,"tag":108,"props":666,"children":667},{"style":126},[668],{"type":52,"value":538},{"type":46,"tag":394,"props":670,"children":672},{"id":671},"sqlresultset-output-from-queryraw",[673],{"type":52,"value":674},"SqlResultSet (output from queryRaw)",{"type":46,"tag":68,"props":676,"children":678},{"className":101,"code":677,"language":14,"meta":77,"style":77},"interface SqlResultSet {\n  columnNames: Array\u003Cstring>; \u002F\u002F Column names in order\n  columnTypes: Array\u003CColumnType>; \u002F\u002F Column types matching columnNames\n  rows: Array\u003CArray\u003Cunknown>>; \u002F\u002F Row data as arrays\n  lastInsertId?: string; \u002F\u002F For INSERT without RETURNING\n}\n",[679],{"type":46,"tag":75,"props":680,"children":681},{"__ignoreMap":77},[682,699,733,767,810,835],{"type":46,"tag":108,"props":683,"children":684},{"class":110,"line":111},[685,690,695],{"type":46,"tag":108,"props":686,"children":687},{"style":412},[688],{"type":52,"value":689},"interface",{"type":46,"tag":108,"props":691,"children":692},{"style":418},[693],{"type":52,"value":694}," SqlResultSet",{"type":46,"tag":108,"props":696,"children":697},{"style":126},[698],{"type":52,"value":129},{"type":46,"tag":108,"props":700,"children":701},{"class":110,"line":132},[702,707,711,715,719,724,728],{"type":46,"tag":108,"props":703,"children":704},{"style":436},[705],{"type":52,"value":706},"  columnNames",{"type":46,"tag":108,"props":708,"children":709},{"style":126},[710],{"type":52,"value":98},{"type":46,"tag":108,"props":712,"children":713},{"style":418},[714],{"type":52,"value":476},{"type":46,"tag":108,"props":716,"children":717},{"style":126},[718],{"type":52,"value":481},{"type":46,"tag":108,"props":720,"children":721},{"style":418},[722],{"type":52,"value":723},"string",{"type":46,"tag":108,"props":725,"children":726},{"style":126},[727],{"type":52,"value":491},{"type":46,"tag":108,"props":729,"children":730},{"style":456},[731],{"type":52,"value":732}," \u002F\u002F Column names in order\n",{"type":46,"tag":108,"props":734,"children":735},{"class":110,"line":30},[736,741,745,749,753,758,762],{"type":46,"tag":108,"props":737,"children":738},{"style":436},[739],{"type":52,"value":740},"  columnTypes",{"type":46,"tag":108,"props":742,"children":743},{"style":126},[744],{"type":52,"value":98},{"type":46,"tag":108,"props":746,"children":747},{"style":418},[748],{"type":52,"value":476},{"type":46,"tag":108,"props":750,"children":751},{"style":126},[752],{"type":52,"value":481},{"type":46,"tag":108,"props":754,"children":755},{"style":418},[756],{"type":52,"value":757},"ColumnType",{"type":46,"tag":108,"props":759,"children":760},{"style":126},[761],{"type":52,"value":491},{"type":46,"tag":108,"props":763,"children":764},{"style":456},[765],{"type":52,"value":766}," \u002F\u002F Column types matching columnNames\n",{"type":46,"tag":108,"props":768,"children":769},{"class":110,"line":159},[770,775,779,783,787,792,796,800,805],{"type":46,"tag":108,"props":771,"children":772},{"style":436},[773],{"type":52,"value":774},"  rows",{"type":46,"tag":108,"props":776,"children":777},{"style":126},[778],{"type":52,"value":98},{"type":46,"tag":108,"props":780,"children":781},{"style":418},[782],{"type":52,"value":476},{"type":46,"tag":108,"props":784,"children":785},{"style":126},[786],{"type":52,"value":481},{"type":46,"tag":108,"props":788,"children":789},{"style":418},[790],{"type":52,"value":791},"Array",{"type":46,"tag":108,"props":793,"children":794},{"style":126},[795],{"type":52,"value":481},{"type":46,"tag":108,"props":797,"children":798},{"style":418},[799],{"type":52,"value":486},{"type":46,"tag":108,"props":801,"children":802},{"style":126},[803],{"type":52,"value":804},">>;",{"type":46,"tag":108,"props":806,"children":807},{"style":456},[808],{"type":52,"value":809}," \u002F\u002F Row data as arrays\n",{"type":46,"tag":108,"props":811,"children":812},{"class":110,"line":172},[813,818,822,826,830],{"type":46,"tag":108,"props":814,"children":815},{"style":436},[816],{"type":52,"value":817},"  lastInsertId",{"type":46,"tag":108,"props":819,"children":820},{"style":126},[821],{"type":52,"value":606},{"type":46,"tag":108,"props":823,"children":824},{"style":418},[825],{"type":52,"value":448},{"type":46,"tag":108,"props":827,"children":828},{"style":126},[829],{"type":52,"value":453},{"type":46,"tag":108,"props":831,"children":832},{"style":456},[833],{"type":52,"value":834}," \u002F\u002F For INSERT without RETURNING\n",{"type":46,"tag":108,"props":836,"children":837},{"class":110,"line":185},[838],{"type":46,"tag":108,"props":839,"children":840},{"style":126},[841],{"type":52,"value":842},"}\n",{"type":46,"tag":394,"props":844,"children":846},{"id":845},"columntypeenum-values",[847],{"type":52,"value":848},"ColumnTypeEnum values",{"type":46,"tag":68,"props":850,"children":852},{"className":101,"code":851,"language":14,"meta":77,"style":77},"const ColumnTypeEnum = {\n  Int32: 0,\n  Int64: 1,\n  Float: 2,\n  Double: 3,\n  Numeric: 4,\n  Boolean: 5,\n  Character: 6,\n  Text: 7,\n  Date: 8,\n  Time: 9,\n  DateTime: 10,\n  Json: 11,\n  Enum: 12,\n  Bytes: 13,\n  Set: 14,\n  Uuid: 15,\n  Int32Array: 64,\n  Int64Array: 65,\n  FloatArray: 66,\n  DoubleArray: 67,\n  NumericArray: 68,\n  BooleanArray: 69,\n  CharacterArray: 70,\n  TextArray: 71,\n  DateArray: 72,\n  TimeArray: 73,\n  DateTimeArray: 74,\n  JsonArray: 75,\n  EnumArray: 76,\n  BytesArray: 77,\n  UuidArray: 78,\n  UnknownNumber: 128,\n} as const;\n",[853],{"type":46,"tag":75,"props":854,"children":855},{"__ignoreMap":77},[856,878,900,921,942,963,984,1005,1026,1047,1068,1089,1110,1131,1152,1173,1194,1215,1236,1258,1280,1302,1324,1346,1368,1390,1412,1434,1456,1478,1500,1522,1544,1566],{"type":46,"tag":108,"props":857,"children":858},{"class":110,"line":111},[859,864,869,874],{"type":46,"tag":108,"props":860,"children":861},{"style":412},[862],{"type":52,"value":863},"const",{"type":46,"tag":108,"props":865,"children":866},{"style":136},[867],{"type":52,"value":868}," ColumnTypeEnum ",{"type":46,"tag":108,"props":870,"children":871},{"style":126},[872],{"type":52,"value":873},"=",{"type":46,"tag":108,"props":875,"children":876},{"style":126},[877],{"type":52,"value":129},{"type":46,"tag":108,"props":879,"children":880},{"class":110,"line":132},[881,886,890,896],{"type":46,"tag":108,"props":882,"children":883},{"style":436},[884],{"type":52,"value":885},"  Int32",{"type":46,"tag":108,"props":887,"children":888},{"style":126},[889],{"type":52,"value":98},{"type":46,"tag":108,"props":891,"children":893},{"style":892},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[894],{"type":52,"value":895}," 0",{"type":46,"tag":108,"props":897,"children":898},{"style":126},[899],{"type":52,"value":144},{"type":46,"tag":108,"props":901,"children":902},{"class":110,"line":30},[903,908,912,917],{"type":46,"tag":108,"props":904,"children":905},{"style":436},[906],{"type":52,"value":907},"  Int64",{"type":46,"tag":108,"props":909,"children":910},{"style":126},[911],{"type":52,"value":98},{"type":46,"tag":108,"props":913,"children":914},{"style":892},[915],{"type":52,"value":916}," 1",{"type":46,"tag":108,"props":918,"children":919},{"style":126},[920],{"type":52,"value":144},{"type":46,"tag":108,"props":922,"children":923},{"class":110,"line":159},[924,929,933,938],{"type":46,"tag":108,"props":925,"children":926},{"style":436},[927],{"type":52,"value":928},"  Float",{"type":46,"tag":108,"props":930,"children":931},{"style":126},[932],{"type":52,"value":98},{"type":46,"tag":108,"props":934,"children":935},{"style":892},[936],{"type":52,"value":937}," 2",{"type":46,"tag":108,"props":939,"children":940},{"style":126},[941],{"type":52,"value":144},{"type":46,"tag":108,"props":943,"children":944},{"class":110,"line":172},[945,950,954,959],{"type":46,"tag":108,"props":946,"children":947},{"style":436},[948],{"type":52,"value":949},"  Double",{"type":46,"tag":108,"props":951,"children":952},{"style":126},[953],{"type":52,"value":98},{"type":46,"tag":108,"props":955,"children":956},{"style":892},[957],{"type":52,"value":958}," 3",{"type":46,"tag":108,"props":960,"children":961},{"style":126},[962],{"type":52,"value":144},{"type":46,"tag":108,"props":964,"children":965},{"class":110,"line":185},[966,971,975,980],{"type":46,"tag":108,"props":967,"children":968},{"style":436},[969],{"type":52,"value":970},"  Numeric",{"type":46,"tag":108,"props":972,"children":973},{"style":126},[974],{"type":52,"value":98},{"type":46,"tag":108,"props":976,"children":977},{"style":892},[978],{"type":52,"value":979}," 4",{"type":46,"tag":108,"props":981,"children":982},{"style":126},[983],{"type":52,"value":144},{"type":46,"tag":108,"props":985,"children":986},{"class":110,"line":198},[987,992,996,1001],{"type":46,"tag":108,"props":988,"children":989},{"style":436},[990],{"type":52,"value":991},"  Boolean",{"type":46,"tag":108,"props":993,"children":994},{"style":126},[995],{"type":52,"value":98},{"type":46,"tag":108,"props":997,"children":998},{"style":892},[999],{"type":52,"value":1000}," 5",{"type":46,"tag":108,"props":1002,"children":1003},{"style":126},[1004],{"type":52,"value":144},{"type":46,"tag":108,"props":1006,"children":1007},{"class":110,"line":211},[1008,1013,1017,1022],{"type":46,"tag":108,"props":1009,"children":1010},{"style":436},[1011],{"type":52,"value":1012},"  Character",{"type":46,"tag":108,"props":1014,"children":1015},{"style":126},[1016],{"type":52,"value":98},{"type":46,"tag":108,"props":1018,"children":1019},{"style":892},[1020],{"type":52,"value":1021}," 6",{"type":46,"tag":108,"props":1023,"children":1024},{"style":126},[1025],{"type":52,"value":144},{"type":46,"tag":108,"props":1027,"children":1028},{"class":110,"line":224},[1029,1034,1038,1043],{"type":46,"tag":108,"props":1030,"children":1031},{"style":436},[1032],{"type":52,"value":1033},"  Text",{"type":46,"tag":108,"props":1035,"children":1036},{"style":126},[1037],{"type":52,"value":98},{"type":46,"tag":108,"props":1039,"children":1040},{"style":892},[1041],{"type":52,"value":1042}," 7",{"type":46,"tag":108,"props":1044,"children":1045},{"style":126},[1046],{"type":52,"value":144},{"type":46,"tag":108,"props":1048,"children":1049},{"class":110,"line":237},[1050,1055,1059,1064],{"type":46,"tag":108,"props":1051,"children":1052},{"style":436},[1053],{"type":52,"value":1054},"  Date",{"type":46,"tag":108,"props":1056,"children":1057},{"style":126},[1058],{"type":52,"value":98},{"type":46,"tag":108,"props":1060,"children":1061},{"style":892},[1062],{"type":52,"value":1063}," 8",{"type":46,"tag":108,"props":1065,"children":1066},{"style":126},[1067],{"type":52,"value":144},{"type":46,"tag":108,"props":1069,"children":1070},{"class":110,"line":250},[1071,1076,1080,1085],{"type":46,"tag":108,"props":1072,"children":1073},{"style":436},[1074],{"type":52,"value":1075},"  Time",{"type":46,"tag":108,"props":1077,"children":1078},{"style":126},[1079],{"type":52,"value":98},{"type":46,"tag":108,"props":1081,"children":1082},{"style":892},[1083],{"type":52,"value":1084}," 9",{"type":46,"tag":108,"props":1086,"children":1087},{"style":126},[1088],{"type":52,"value":144},{"type":46,"tag":108,"props":1090,"children":1091},{"class":110,"line":263},[1092,1097,1101,1106],{"type":46,"tag":108,"props":1093,"children":1094},{"style":436},[1095],{"type":52,"value":1096},"  DateTime",{"type":46,"tag":108,"props":1098,"children":1099},{"style":126},[1100],{"type":52,"value":98},{"type":46,"tag":108,"props":1102,"children":1103},{"style":892},[1104],{"type":52,"value":1105}," 10",{"type":46,"tag":108,"props":1107,"children":1108},{"style":126},[1109],{"type":52,"value":144},{"type":46,"tag":108,"props":1111,"children":1112},{"class":110,"line":276},[1113,1118,1122,1127],{"type":46,"tag":108,"props":1114,"children":1115},{"style":436},[1116],{"type":52,"value":1117},"  Json",{"type":46,"tag":108,"props":1119,"children":1120},{"style":126},[1121],{"type":52,"value":98},{"type":46,"tag":108,"props":1123,"children":1124},{"style":892},[1125],{"type":52,"value":1126}," 11",{"type":46,"tag":108,"props":1128,"children":1129},{"style":126},[1130],{"type":52,"value":144},{"type":46,"tag":108,"props":1132,"children":1133},{"class":110,"line":289},[1134,1139,1143,1148],{"type":46,"tag":108,"props":1135,"children":1136},{"style":436},[1137],{"type":52,"value":1138},"  Enum",{"type":46,"tag":108,"props":1140,"children":1141},{"style":126},[1142],{"type":52,"value":98},{"type":46,"tag":108,"props":1144,"children":1145},{"style":892},[1146],{"type":52,"value":1147}," 12",{"type":46,"tag":108,"props":1149,"children":1150},{"style":126},[1151],{"type":52,"value":144},{"type":46,"tag":108,"props":1153,"children":1154},{"class":110,"line":323},[1155,1160,1164,1169],{"type":46,"tag":108,"props":1156,"children":1157},{"style":436},[1158],{"type":52,"value":1159},"  Bytes",{"type":46,"tag":108,"props":1161,"children":1162},{"style":126},[1163],{"type":52,"value":98},{"type":46,"tag":108,"props":1165,"children":1166},{"style":892},[1167],{"type":52,"value":1168}," 13",{"type":46,"tag":108,"props":1170,"children":1171},{"style":126},[1172],{"type":52,"value":144},{"type":46,"tag":108,"props":1174,"children":1175},{"class":110,"line":335},[1176,1181,1185,1190],{"type":46,"tag":108,"props":1177,"children":1178},{"style":436},[1179],{"type":52,"value":1180},"  Set",{"type":46,"tag":108,"props":1182,"children":1183},{"style":126},[1184],{"type":52,"value":98},{"type":46,"tag":108,"props":1186,"children":1187},{"style":892},[1188],{"type":52,"value":1189}," 14",{"type":46,"tag":108,"props":1191,"children":1192},{"style":126},[1193],{"type":52,"value":144},{"type":46,"tag":108,"props":1195,"children":1196},{"class":110,"line":348},[1197,1202,1206,1211],{"type":46,"tag":108,"props":1198,"children":1199},{"style":436},[1200],{"type":52,"value":1201},"  Uuid",{"type":46,"tag":108,"props":1203,"children":1204},{"style":126},[1205],{"type":52,"value":98},{"type":46,"tag":108,"props":1207,"children":1208},{"style":892},[1209],{"type":52,"value":1210}," 15",{"type":46,"tag":108,"props":1212,"children":1213},{"style":126},[1214],{"type":52,"value":144},{"type":46,"tag":108,"props":1216,"children":1217},{"class":110,"line":361},[1218,1223,1227,1232],{"type":46,"tag":108,"props":1219,"children":1220},{"style":436},[1221],{"type":52,"value":1222},"  Int32Array",{"type":46,"tag":108,"props":1224,"children":1225},{"style":126},[1226],{"type":52,"value":98},{"type":46,"tag":108,"props":1228,"children":1229},{"style":892},[1230],{"type":52,"value":1231}," 64",{"type":46,"tag":108,"props":1233,"children":1234},{"style":126},[1235],{"type":52,"value":144},{"type":46,"tag":108,"props":1237,"children":1239},{"class":110,"line":1238},19,[1240,1245,1249,1254],{"type":46,"tag":108,"props":1241,"children":1242},{"style":436},[1243],{"type":52,"value":1244},"  Int64Array",{"type":46,"tag":108,"props":1246,"children":1247},{"style":126},[1248],{"type":52,"value":98},{"type":46,"tag":108,"props":1250,"children":1251},{"style":892},[1252],{"type":52,"value":1253}," 65",{"type":46,"tag":108,"props":1255,"children":1256},{"style":126},[1257],{"type":52,"value":144},{"type":46,"tag":108,"props":1259,"children":1261},{"class":110,"line":1260},20,[1262,1267,1271,1276],{"type":46,"tag":108,"props":1263,"children":1264},{"style":436},[1265],{"type":52,"value":1266},"  FloatArray",{"type":46,"tag":108,"props":1268,"children":1269},{"style":126},[1270],{"type":52,"value":98},{"type":46,"tag":108,"props":1272,"children":1273},{"style":892},[1274],{"type":52,"value":1275}," 66",{"type":46,"tag":108,"props":1277,"children":1278},{"style":126},[1279],{"type":52,"value":144},{"type":46,"tag":108,"props":1281,"children":1283},{"class":110,"line":1282},21,[1284,1289,1293,1298],{"type":46,"tag":108,"props":1285,"children":1286},{"style":436},[1287],{"type":52,"value":1288},"  DoubleArray",{"type":46,"tag":108,"props":1290,"children":1291},{"style":126},[1292],{"type":52,"value":98},{"type":46,"tag":108,"props":1294,"children":1295},{"style":892},[1296],{"type":52,"value":1297}," 67",{"type":46,"tag":108,"props":1299,"children":1300},{"style":126},[1301],{"type":52,"value":144},{"type":46,"tag":108,"props":1303,"children":1305},{"class":110,"line":1304},22,[1306,1311,1315,1320],{"type":46,"tag":108,"props":1307,"children":1308},{"style":436},[1309],{"type":52,"value":1310},"  NumericArray",{"type":46,"tag":108,"props":1312,"children":1313},{"style":126},[1314],{"type":52,"value":98},{"type":46,"tag":108,"props":1316,"children":1317},{"style":892},[1318],{"type":52,"value":1319}," 68",{"type":46,"tag":108,"props":1321,"children":1322},{"style":126},[1323],{"type":52,"value":144},{"type":46,"tag":108,"props":1325,"children":1327},{"class":110,"line":1326},23,[1328,1333,1337,1342],{"type":46,"tag":108,"props":1329,"children":1330},{"style":436},[1331],{"type":52,"value":1332},"  BooleanArray",{"type":46,"tag":108,"props":1334,"children":1335},{"style":126},[1336],{"type":52,"value":98},{"type":46,"tag":108,"props":1338,"children":1339},{"style":892},[1340],{"type":52,"value":1341}," 69",{"type":46,"tag":108,"props":1343,"children":1344},{"style":126},[1345],{"type":52,"value":144},{"type":46,"tag":108,"props":1347,"children":1349},{"class":110,"line":1348},24,[1350,1355,1359,1364],{"type":46,"tag":108,"props":1351,"children":1352},{"style":436},[1353],{"type":52,"value":1354},"  CharacterArray",{"type":46,"tag":108,"props":1356,"children":1357},{"style":126},[1358],{"type":52,"value":98},{"type":46,"tag":108,"props":1360,"children":1361},{"style":892},[1362],{"type":52,"value":1363}," 70",{"type":46,"tag":108,"props":1365,"children":1366},{"style":126},[1367],{"type":52,"value":144},{"type":46,"tag":108,"props":1369,"children":1371},{"class":110,"line":1370},25,[1372,1377,1381,1386],{"type":46,"tag":108,"props":1373,"children":1374},{"style":436},[1375],{"type":52,"value":1376},"  TextArray",{"type":46,"tag":108,"props":1378,"children":1379},{"style":126},[1380],{"type":52,"value":98},{"type":46,"tag":108,"props":1382,"children":1383},{"style":892},[1384],{"type":52,"value":1385}," 71",{"type":46,"tag":108,"props":1387,"children":1388},{"style":126},[1389],{"type":52,"value":144},{"type":46,"tag":108,"props":1391,"children":1393},{"class":110,"line":1392},26,[1394,1399,1403,1408],{"type":46,"tag":108,"props":1395,"children":1396},{"style":436},[1397],{"type":52,"value":1398},"  DateArray",{"type":46,"tag":108,"props":1400,"children":1401},{"style":126},[1402],{"type":52,"value":98},{"type":46,"tag":108,"props":1404,"children":1405},{"style":892},[1406],{"type":52,"value":1407}," 72",{"type":46,"tag":108,"props":1409,"children":1410},{"style":126},[1411],{"type":52,"value":144},{"type":46,"tag":108,"props":1413,"children":1415},{"class":110,"line":1414},27,[1416,1421,1425,1430],{"type":46,"tag":108,"props":1417,"children":1418},{"style":436},[1419],{"type":52,"value":1420},"  TimeArray",{"type":46,"tag":108,"props":1422,"children":1423},{"style":126},[1424],{"type":52,"value":98},{"type":46,"tag":108,"props":1426,"children":1427},{"style":892},[1428],{"type":52,"value":1429}," 73",{"type":46,"tag":108,"props":1431,"children":1432},{"style":126},[1433],{"type":52,"value":144},{"type":46,"tag":108,"props":1435,"children":1437},{"class":110,"line":1436},28,[1438,1443,1447,1452],{"type":46,"tag":108,"props":1439,"children":1440},{"style":436},[1441],{"type":52,"value":1442},"  DateTimeArray",{"type":46,"tag":108,"props":1444,"children":1445},{"style":126},[1446],{"type":52,"value":98},{"type":46,"tag":108,"props":1448,"children":1449},{"style":892},[1450],{"type":52,"value":1451}," 74",{"type":46,"tag":108,"props":1453,"children":1454},{"style":126},[1455],{"type":52,"value":144},{"type":46,"tag":108,"props":1457,"children":1459},{"class":110,"line":1458},29,[1460,1465,1469,1474],{"type":46,"tag":108,"props":1461,"children":1462},{"style":436},[1463],{"type":52,"value":1464},"  JsonArray",{"type":46,"tag":108,"props":1466,"children":1467},{"style":126},[1468],{"type":52,"value":98},{"type":46,"tag":108,"props":1470,"children":1471},{"style":892},[1472],{"type":52,"value":1473}," 75",{"type":46,"tag":108,"props":1475,"children":1476},{"style":126},[1477],{"type":52,"value":144},{"type":46,"tag":108,"props":1479,"children":1481},{"class":110,"line":1480},30,[1482,1487,1491,1496],{"type":46,"tag":108,"props":1483,"children":1484},{"style":436},[1485],{"type":52,"value":1486},"  EnumArray",{"type":46,"tag":108,"props":1488,"children":1489},{"style":126},[1490],{"type":52,"value":98},{"type":46,"tag":108,"props":1492,"children":1493},{"style":892},[1494],{"type":52,"value":1495}," 76",{"type":46,"tag":108,"props":1497,"children":1498},{"style":126},[1499],{"type":52,"value":144},{"type":46,"tag":108,"props":1501,"children":1503},{"class":110,"line":1502},31,[1504,1509,1513,1518],{"type":46,"tag":108,"props":1505,"children":1506},{"style":436},[1507],{"type":52,"value":1508},"  BytesArray",{"type":46,"tag":108,"props":1510,"children":1511},{"style":126},[1512],{"type":52,"value":98},{"type":46,"tag":108,"props":1514,"children":1515},{"style":892},[1516],{"type":52,"value":1517}," 77",{"type":46,"tag":108,"props":1519,"children":1520},{"style":126},[1521],{"type":52,"value":144},{"type":46,"tag":108,"props":1523,"children":1525},{"class":110,"line":1524},32,[1526,1531,1535,1540],{"type":46,"tag":108,"props":1527,"children":1528},{"style":436},[1529],{"type":52,"value":1530},"  UuidArray",{"type":46,"tag":108,"props":1532,"children":1533},{"style":126},[1534],{"type":52,"value":98},{"type":46,"tag":108,"props":1536,"children":1537},{"style":892},[1538],{"type":52,"value":1539}," 78",{"type":46,"tag":108,"props":1541,"children":1542},{"style":126},[1543],{"type":52,"value":144},{"type":46,"tag":108,"props":1545,"children":1547},{"class":110,"line":1546},33,[1548,1553,1557,1562],{"type":46,"tag":108,"props":1549,"children":1550},{"style":436},[1551],{"type":52,"value":1552},"  UnknownNumber",{"type":46,"tag":108,"props":1554,"children":1555},{"style":126},[1556],{"type":52,"value":98},{"type":46,"tag":108,"props":1558,"children":1559},{"style":892},[1560],{"type":52,"value":1561}," 128",{"type":46,"tag":108,"props":1563,"children":1564},{"style":126},[1565],{"type":52,"value":144},{"type":46,"tag":108,"props":1567,"children":1569},{"class":110,"line":1568},34,[1570,1574,1579,1584],{"type":46,"tag":108,"props":1571,"children":1572},{"style":126},[1573],{"type":52,"value":295},{"type":46,"tag":108,"props":1575,"children":1576},{"style":115},[1577],{"type":52,"value":1578}," as",{"type":46,"tag":108,"props":1580,"children":1581},{"style":412},[1582],{"type":52,"value":1583}," const",{"type":46,"tag":108,"props":1585,"children":1586},{"style":126},[1587],{"type":52,"value":320},{"type":46,"tag":394,"props":1589,"children":1591},{"id":1590},"sqldriveradapter",[1592],{"type":52,"value":1593},"SqlDriverAdapter",{"type":46,"tag":68,"props":1595,"children":1597},{"className":101,"code":1596,"language":14,"meta":77,"style":77},"interface SqlDriverAdapter extends SqlQueryable {\n  executeScript(script: string): Promise\u003Cvoid>;\n  startTransaction(isolationLevel?: IsolationLevel): Promise\u003CTransaction>;\n  getConnectionInfo?(): ConnectionInfo;\n  dispose(): Promise\u003Cvoid>;\n}\n",[1598],{"type":46,"tag":75,"props":1599,"children":1600},{"__ignoreMap":77},[1601,1627,1678,1725,1747,1776],{"type":46,"tag":108,"props":1602,"children":1603},{"class":110,"line":111},[1604,1608,1613,1618,1623],{"type":46,"tag":108,"props":1605,"children":1606},{"style":412},[1607],{"type":52,"value":689},{"type":46,"tag":108,"props":1609,"children":1610},{"style":418},[1611],{"type":52,"value":1612}," SqlDriverAdapter",{"type":46,"tag":108,"props":1614,"children":1615},{"style":412},[1616],{"type":52,"value":1617}," extends",{"type":46,"tag":108,"props":1619,"children":1620},{"style":418},[1621],{"type":52,"value":1622}," SqlQueryable",{"type":46,"tag":108,"props":1624,"children":1625},{"style":126},[1626],{"type":52,"value":129},{"type":46,"tag":108,"props":1628,"children":1629},{"class":110,"line":132},[1630,1635,1640,1646,1650,1654,1659,1664,1668,1673],{"type":46,"tag":108,"props":1631,"children":1632},{"style":436},[1633],{"type":52,"value":1634},"  executeScript",{"type":46,"tag":108,"props":1636,"children":1637},{"style":126},[1638],{"type":52,"value":1639},"(",{"type":46,"tag":108,"props":1641,"children":1643},{"style":1642},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1644],{"type":52,"value":1645},"script",{"type":46,"tag":108,"props":1647,"children":1648},{"style":126},[1649],{"type":52,"value":98},{"type":46,"tag":108,"props":1651,"children":1652},{"style":418},[1653],{"type":52,"value":448},{"type":46,"tag":108,"props":1655,"children":1656},{"style":126},[1657],{"type":52,"value":1658},"):",{"type":46,"tag":108,"props":1660,"children":1661},{"style":418},[1662],{"type":52,"value":1663}," Promise",{"type":46,"tag":108,"props":1665,"children":1666},{"style":126},[1667],{"type":52,"value":481},{"type":46,"tag":108,"props":1669,"children":1670},{"style":418},[1671],{"type":52,"value":1672},"void",{"type":46,"tag":108,"props":1674,"children":1675},{"style":126},[1676],{"type":52,"value":1677},">;\n",{"type":46,"tag":108,"props":1679,"children":1680},{"class":110,"line":30},[1681,1686,1690,1695,1699,1704,1708,1712,1716,1721],{"type":46,"tag":108,"props":1682,"children":1683},{"style":436},[1684],{"type":52,"value":1685},"  startTransaction",{"type":46,"tag":108,"props":1687,"children":1688},{"style":126},[1689],{"type":52,"value":1639},{"type":46,"tag":108,"props":1691,"children":1692},{"style":1642},[1693],{"type":52,"value":1694},"isolationLevel",{"type":46,"tag":108,"props":1696,"children":1697},{"style":126},[1698],{"type":52,"value":606},{"type":46,"tag":108,"props":1700,"children":1701},{"style":418},[1702],{"type":52,"value":1703}," IsolationLevel",{"type":46,"tag":108,"props":1705,"children":1706},{"style":126},[1707],{"type":52,"value":1658},{"type":46,"tag":108,"props":1709,"children":1710},{"style":418},[1711],{"type":52,"value":1663},{"type":46,"tag":108,"props":1713,"children":1714},{"style":126},[1715],{"type":52,"value":481},{"type":46,"tag":108,"props":1717,"children":1718},{"style":418},[1719],{"type":52,"value":1720},"Transaction",{"type":46,"tag":108,"props":1722,"children":1723},{"style":126},[1724],{"type":52,"value":1677},{"type":46,"tag":108,"props":1726,"children":1727},{"class":110,"line":159},[1728,1733,1738,1743],{"type":46,"tag":108,"props":1729,"children":1730},{"style":436},[1731],{"type":52,"value":1732},"  getConnectionInfo",{"type":46,"tag":108,"props":1734,"children":1735},{"style":126},[1736],{"type":52,"value":1737},"?():",{"type":46,"tag":108,"props":1739,"children":1740},{"style":418},[1741],{"type":52,"value":1742}," ConnectionInfo",{"type":46,"tag":108,"props":1744,"children":1745},{"style":126},[1746],{"type":52,"value":320},{"type":46,"tag":108,"props":1748,"children":1749},{"class":110,"line":172},[1750,1755,1760,1764,1768,1772],{"type":46,"tag":108,"props":1751,"children":1752},{"style":436},[1753],{"type":52,"value":1754},"  dispose",{"type":46,"tag":108,"props":1756,"children":1757},{"style":126},[1758],{"type":52,"value":1759},"():",{"type":46,"tag":108,"props":1761,"children":1762},{"style":418},[1763],{"type":52,"value":1663},{"type":46,"tag":108,"props":1765,"children":1766},{"style":126},[1767],{"type":52,"value":481},{"type":46,"tag":108,"props":1769,"children":1770},{"style":418},[1771],{"type":52,"value":1672},{"type":46,"tag":108,"props":1773,"children":1774},{"style":126},[1775],{"type":52,"value":1677},{"type":46,"tag":108,"props":1777,"children":1778},{"class":110,"line":185},[1779],{"type":46,"tag":108,"props":1780,"children":1781},{"style":126},[1782],{"type":52,"value":842},{"type":46,"tag":394,"props":1784,"children":1786},{"id":1785},"transaction",[1787],{"type":52,"value":1720},{"type":46,"tag":68,"props":1789,"children":1791},{"className":101,"code":1790,"language":14,"meta":77,"style":77},"interface Transaction extends SqlQueryable {\n  readonly options: TransactionOptions;\n  commit(): Promise\u003Cvoid>;\n  rollback(): Promise\u003Cvoid>;\n}\n\ntype TransactionOptions = { usePhantomQuery: boolean };\n",[1792],{"type":46,"tag":75,"props":1793,"children":1794},{"__ignoreMap":77},[1795,1819,1845,1873,1901,1908,1915],{"type":46,"tag":108,"props":1796,"children":1797},{"class":110,"line":111},[1798,1802,1807,1811,1815],{"type":46,"tag":108,"props":1799,"children":1800},{"style":412},[1801],{"type":52,"value":689},{"type":46,"tag":108,"props":1803,"children":1804},{"style":418},[1805],{"type":52,"value":1806}," Transaction",{"type":46,"tag":108,"props":1808,"children":1809},{"style":412},[1810],{"type":52,"value":1617},{"type":46,"tag":108,"props":1812,"children":1813},{"style":418},[1814],{"type":52,"value":1622},{"type":46,"tag":108,"props":1816,"children":1817},{"style":126},[1818],{"type":52,"value":129},{"type":46,"tag":108,"props":1820,"children":1821},{"class":110,"line":132},[1822,1827,1832,1836,1841],{"type":46,"tag":108,"props":1823,"children":1824},{"style":412},[1825],{"type":52,"value":1826},"  readonly",{"type":46,"tag":108,"props":1828,"children":1829},{"style":436},[1830],{"type":52,"value":1831}," options",{"type":46,"tag":108,"props":1833,"children":1834},{"style":126},[1835],{"type":52,"value":98},{"type":46,"tag":108,"props":1837,"children":1838},{"style":418},[1839],{"type":52,"value":1840}," TransactionOptions",{"type":46,"tag":108,"props":1842,"children":1843},{"style":126},[1844],{"type":52,"value":320},{"type":46,"tag":108,"props":1846,"children":1847},{"class":110,"line":30},[1848,1853,1857,1861,1865,1869],{"type":46,"tag":108,"props":1849,"children":1850},{"style":436},[1851],{"type":52,"value":1852},"  commit",{"type":46,"tag":108,"props":1854,"children":1855},{"style":126},[1856],{"type":52,"value":1759},{"type":46,"tag":108,"props":1858,"children":1859},{"style":418},[1860],{"type":52,"value":1663},{"type":46,"tag":108,"props":1862,"children":1863},{"style":126},[1864],{"type":52,"value":481},{"type":46,"tag":108,"props":1866,"children":1867},{"style":418},[1868],{"type":52,"value":1672},{"type":46,"tag":108,"props":1870,"children":1871},{"style":126},[1872],{"type":52,"value":1677},{"type":46,"tag":108,"props":1874,"children":1875},{"class":110,"line":159},[1876,1881,1885,1889,1893,1897],{"type":46,"tag":108,"props":1877,"children":1878},{"style":436},[1879],{"type":52,"value":1880},"  rollback",{"type":46,"tag":108,"props":1882,"children":1883},{"style":126},[1884],{"type":52,"value":1759},{"type":46,"tag":108,"props":1886,"children":1887},{"style":418},[1888],{"type":52,"value":1663},{"type":46,"tag":108,"props":1890,"children":1891},{"style":126},[1892],{"type":52,"value":481},{"type":46,"tag":108,"props":1894,"children":1895},{"style":418},[1896],{"type":52,"value":1672},{"type":46,"tag":108,"props":1898,"children":1899},{"style":126},[1900],{"type":52,"value":1677},{"type":46,"tag":108,"props":1902,"children":1903},{"class":110,"line":172},[1904],{"type":46,"tag":108,"props":1905,"children":1906},{"style":126},[1907],{"type":52,"value":842},{"type":46,"tag":108,"props":1909,"children":1910},{"class":110,"line":185},[1911],{"type":46,"tag":108,"props":1912,"children":1913},{"emptyLinePlaceholder":544},[1914],{"type":52,"value":547},{"type":46,"tag":108,"props":1916,"children":1917},{"class":110,"line":198},[1918,1922,1926,1930,1935,1940,1944,1949],{"type":46,"tag":108,"props":1919,"children":1920},{"style":412},[1921],{"type":52,"value":415},{"type":46,"tag":108,"props":1923,"children":1924},{"style":418},[1925],{"type":52,"value":1840},{"type":46,"tag":108,"props":1927,"children":1928},{"style":126},[1929],{"type":52,"value":426},{"type":46,"tag":108,"props":1931,"children":1932},{"style":126},[1933],{"type":52,"value":1934}," {",{"type":46,"tag":108,"props":1936,"children":1937},{"style":436},[1938],{"type":52,"value":1939}," usePhantomQuery",{"type":46,"tag":108,"props":1941,"children":1942},{"style":126},[1943],{"type":52,"value":98},{"type":46,"tag":108,"props":1945,"children":1946},{"style":418},[1947],{"type":52,"value":1948}," boolean",{"type":46,"tag":108,"props":1950,"children":1951},{"style":126},[1952],{"type":52,"value":1953}," };\n",{"type":46,"tag":394,"props":1955,"children":1957},{"id":1956},"sqlmigrationawaredriveradapterfactory",[1958],{"type":52,"value":1959},"SqlMigrationAwareDriverAdapterFactory",{"type":46,"tag":68,"props":1961,"children":1963},{"className":101,"code":1962,"language":14,"meta":77,"style":77},"interface SqlMigrationAwareDriverAdapterFactory {\n  readonly provider: \"mysql\" | \"postgres\" | \"sqlite\" | \"sqlserver\";\n  readonly adapterName: string;\n  connect(): Promise\u003CSqlDriverAdapter>;\n  connectToShadowDb(): Promise\u003CSqlDriverAdapter>;\n}\n",[1964],{"type":46,"tag":75,"props":1965,"children":1966},{"__ignoreMap":77},[1967,1983,2067,2091,2119,2147],{"type":46,"tag":108,"props":1968,"children":1969},{"class":110,"line":111},[1970,1974,1979],{"type":46,"tag":108,"props":1971,"children":1972},{"style":412},[1973],{"type":52,"value":689},{"type":46,"tag":108,"props":1975,"children":1976},{"style":418},[1977],{"type":52,"value":1978}," SqlMigrationAwareDriverAdapterFactory",{"type":46,"tag":108,"props":1980,"children":1981},{"style":126},[1982],{"type":52,"value":129},{"type":46,"tag":108,"props":1984,"children":1985},{"class":110,"line":132},[1986,1990,1995,1999,2003,2008,2012,2016,2020,2025,2029,2033,2037,2042,2046,2050,2054,2059,2063],{"type":46,"tag":108,"props":1987,"children":1988},{"style":412},[1989],{"type":52,"value":1826},{"type":46,"tag":108,"props":1991,"children":1992},{"style":436},[1993],{"type":52,"value":1994}," provider",{"type":46,"tag":108,"props":1996,"children":1997},{"style":126},[1998],{"type":52,"value":98},{"type":46,"tag":108,"props":2000,"children":2001},{"style":126},[2002],{"type":52,"value":305},{"type":46,"tag":108,"props":2004,"children":2005},{"style":308},[2006],{"type":52,"value":2007},"mysql",{"type":46,"tag":108,"props":2009,"children":2010},{"style":126},[2011],{"type":52,"value":315},{"type":46,"tag":108,"props":2013,"children":2014},{"style":126},[2015],{"type":52,"value":644},{"type":46,"tag":108,"props":2017,"children":2018},{"style":126},[2019],{"type":52,"value":305},{"type":46,"tag":108,"props":2021,"children":2022},{"style":308},[2023],{"type":52,"value":2024},"postgres",{"type":46,"tag":108,"props":2026,"children":2027},{"style":126},[2028],{"type":52,"value":315},{"type":46,"tag":108,"props":2030,"children":2031},{"style":126},[2032],{"type":52,"value":644},{"type":46,"tag":108,"props":2034,"children":2035},{"style":126},[2036],{"type":52,"value":305},{"type":46,"tag":108,"props":2038,"children":2039},{"style":308},[2040],{"type":52,"value":2041},"sqlite",{"type":46,"tag":108,"props":2043,"children":2044},{"style":126},[2045],{"type":52,"value":315},{"type":46,"tag":108,"props":2047,"children":2048},{"style":126},[2049],{"type":52,"value":644},{"type":46,"tag":108,"props":2051,"children":2052},{"style":126},[2053],{"type":52,"value":305},{"type":46,"tag":108,"props":2055,"children":2056},{"style":308},[2057],{"type":52,"value":2058},"sqlserver",{"type":46,"tag":108,"props":2060,"children":2061},{"style":126},[2062],{"type":52,"value":315},{"type":46,"tag":108,"props":2064,"children":2065},{"style":126},[2066],{"type":52,"value":320},{"type":46,"tag":108,"props":2068,"children":2069},{"class":110,"line":30},[2070,2074,2079,2083,2087],{"type":46,"tag":108,"props":2071,"children":2072},{"style":412},[2073],{"type":52,"value":1826},{"type":46,"tag":108,"props":2075,"children":2076},{"style":436},[2077],{"type":52,"value":2078}," adapterName",{"type":46,"tag":108,"props":2080,"children":2081},{"style":126},[2082],{"type":52,"value":98},{"type":46,"tag":108,"props":2084,"children":2085},{"style":418},[2086],{"type":52,"value":448},{"type":46,"tag":108,"props":2088,"children":2089},{"style":126},[2090],{"type":52,"value":320},{"type":46,"tag":108,"props":2092,"children":2093},{"class":110,"line":159},[2094,2099,2103,2107,2111,2115],{"type":46,"tag":108,"props":2095,"children":2096},{"style":436},[2097],{"type":52,"value":2098},"  connect",{"type":46,"tag":108,"props":2100,"children":2101},{"style":126},[2102],{"type":52,"value":1759},{"type":46,"tag":108,"props":2104,"children":2105},{"style":418},[2106],{"type":52,"value":1663},{"type":46,"tag":108,"props":2108,"children":2109},{"style":126},[2110],{"type":52,"value":481},{"type":46,"tag":108,"props":2112,"children":2113},{"style":418},[2114],{"type":52,"value":1593},{"type":46,"tag":108,"props":2116,"children":2117},{"style":126},[2118],{"type":52,"value":1677},{"type":46,"tag":108,"props":2120,"children":2121},{"class":110,"line":172},[2122,2127,2131,2135,2139,2143],{"type":46,"tag":108,"props":2123,"children":2124},{"style":436},[2125],{"type":52,"value":2126},"  connectToShadowDb",{"type":46,"tag":108,"props":2128,"children":2129},{"style":126},[2130],{"type":52,"value":1759},{"type":46,"tag":108,"props":2132,"children":2133},{"style":418},[2134],{"type":52,"value":1663},{"type":46,"tag":108,"props":2136,"children":2137},{"style":126},[2138],{"type":52,"value":481},{"type":46,"tag":108,"props":2140,"children":2141},{"style":418},[2142],{"type":52,"value":1593},{"type":46,"tag":108,"props":2144,"children":2145},{"style":126},[2146],{"type":52,"value":1677},{"type":46,"tag":108,"props":2148,"children":2149},{"class":110,"line":185},[2150],{"type":46,"tag":108,"props":2151,"children":2152},{"style":126},[2153],{"type":52,"value":842},{"type":46,"tag":61,"props":2155,"children":2157},{"id":2156},"implementation-steps",[2158],{"type":52,"value":2159},"Implementation Steps",{"type":46,"tag":394,"props":2161,"children":2163},{"id":2162},"step-1-create-the-queryable-base-class",[2164],{"type":52,"value":2165},"Step 1: Create the Queryable base class",{"type":46,"tag":68,"props":2167,"children":2169},{"className":101,"code":2168,"language":14,"meta":77,"style":77},"class MyQueryable\u003CTClient> implements SqlQueryable {\n  readonly provider = \"postgres\" as const; \u002F\u002F or 'sqlite' | 'mysql' | 'sqlserver'\n  readonly adapterName = \"@my-org\u002Fadapter-mydb\" as const;\n\n  constructor(protected readonly client: TClient) {}\n\n  async queryRaw(query: SqlQuery): Promise\u003CSqlResultSet> {\n    try {\n      const args = query.args.map((arg, i) =>\n        mapArg(arg, query.argTypes[i] ?? { scalarType: \"unknown\", arity: \"scalar\" })\n      );\n\n      \u002F\u002F Execute query with your driver\n      const result = await this.client.query(query.sql, args);\n\n      \u002F\u002F Extract column metadata\n      const columnNames = \u002F* get from result *\u002F;\n      const columnTypes = \u002F* map to ColumnTypeEnum *\u002F;\n\n      \u002F\u002F Map rows to ResultValue arrays\n      const rows = result.map(row => mapRow(row, columnTypes));\n\n      return { columnNames, columnTypes, rows };\n    } catch (e) {\n      this.onError(e);\n    }\n  }\n\n  async executeRaw(query: SqlQuery): Promise\u003Cnumber> {\n    try {\n      const args = query.args.map((arg, i) =>\n        mapArg(arg, query.argTypes[i] ?? { scalarType: \"unknown\", arity: \"scalar\" })\n      );\n      const result = await this.client.query(query.sql, args);\n      return result.affectedRows ?? 0;\n    } catch (e) {\n      this.onError(e);\n    }\n  }\n\n  protected onError(error: unknown): never {\n    throw new DriverAdapterError(convertDriverError(error));\n  }\n}\n",[2170],{"type":46,"tag":75,"props":2171,"children":2172},{"__ignoreMap":77},[2173,2213,2257,2297,2304,2350,2357,2412,2424,2498,2611,2623,2630,2638,2710,2717,2725,2750,2775,2782,2790,2862,2869,2905,2938,2967,2975,2983,2990,3043,3054,3117,3220,3231,3298,3332,3360,3388,3396,3404,3412,3457,3501,3509],{"type":46,"tag":108,"props":2174,"children":2175},{"class":110,"line":111},[2176,2181,2186,2190,2195,2200,2205,2209],{"type":46,"tag":108,"props":2177,"children":2178},{"style":412},[2179],{"type":52,"value":2180},"class",{"type":46,"tag":108,"props":2182,"children":2183},{"style":418},[2184],{"type":52,"value":2185}," MyQueryable",{"type":46,"tag":108,"props":2187,"children":2188},{"style":126},[2189],{"type":52,"value":481},{"type":46,"tag":108,"props":2191,"children":2192},{"style":418},[2193],{"type":52,"value":2194},"TClient",{"type":46,"tag":108,"props":2196,"children":2197},{"style":126},[2198],{"type":52,"value":2199},">",{"type":46,"tag":108,"props":2201,"children":2202},{"style":412},[2203],{"type":52,"value":2204}," implements",{"type":46,"tag":108,"props":2206,"children":2207},{"style":418},[2208],{"type":52,"value":1622},{"type":46,"tag":108,"props":2210,"children":2211},{"style":126},[2212],{"type":52,"value":129},{"type":46,"tag":108,"props":2214,"children":2215},{"class":110,"line":132},[2216,2220,2224,2228,2232,2236,2240,2244,2248,2252],{"type":46,"tag":108,"props":2217,"children":2218},{"style":412},[2219],{"type":52,"value":1826},{"type":46,"tag":108,"props":2221,"children":2222},{"style":436},[2223],{"type":52,"value":1994},{"type":46,"tag":108,"props":2225,"children":2226},{"style":126},[2227],{"type":52,"value":426},{"type":46,"tag":108,"props":2229,"children":2230},{"style":126},[2231],{"type":52,"value":305},{"type":46,"tag":108,"props":2233,"children":2234},{"style":308},[2235],{"type":52,"value":2024},{"type":46,"tag":108,"props":2237,"children":2238},{"style":126},[2239],{"type":52,"value":315},{"type":46,"tag":108,"props":2241,"children":2242},{"style":115},[2243],{"type":52,"value":1578},{"type":46,"tag":108,"props":2245,"children":2246},{"style":412},[2247],{"type":52,"value":1583},{"type":46,"tag":108,"props":2249,"children":2250},{"style":126},[2251],{"type":52,"value":453},{"type":46,"tag":108,"props":2253,"children":2254},{"style":456},[2255],{"type":52,"value":2256}," \u002F\u002F or 'sqlite' | 'mysql' | 'sqlserver'\n",{"type":46,"tag":108,"props":2258,"children":2259},{"class":110,"line":30},[2260,2264,2268,2272,2276,2281,2285,2289,2293],{"type":46,"tag":108,"props":2261,"children":2262},{"style":412},[2263],{"type":52,"value":1826},{"type":46,"tag":108,"props":2265,"children":2266},{"style":436},[2267],{"type":52,"value":2078},{"type":46,"tag":108,"props":2269,"children":2270},{"style":126},[2271],{"type":52,"value":426},{"type":46,"tag":108,"props":2273,"children":2274},{"style":126},[2275],{"type":52,"value":305},{"type":46,"tag":108,"props":2277,"children":2278},{"style":308},[2279],{"type":52,"value":2280},"@my-org\u002Fadapter-mydb",{"type":46,"tag":108,"props":2282,"children":2283},{"style":126},[2284],{"type":52,"value":315},{"type":46,"tag":108,"props":2286,"children":2287},{"style":115},[2288],{"type":52,"value":1578},{"type":46,"tag":108,"props":2290,"children":2291},{"style":412},[2292],{"type":52,"value":1583},{"type":46,"tag":108,"props":2294,"children":2295},{"style":126},[2296],{"type":52,"value":320},{"type":46,"tag":108,"props":2298,"children":2299},{"class":110,"line":159},[2300],{"type":46,"tag":108,"props":2301,"children":2302},{"emptyLinePlaceholder":544},[2303],{"type":52,"value":547},{"type":46,"tag":108,"props":2305,"children":2306},{"class":110,"line":172},[2307,2312,2316,2321,2326,2331,2335,2340,2345],{"type":46,"tag":108,"props":2308,"children":2309},{"style":412},[2310],{"type":52,"value":2311},"  constructor",{"type":46,"tag":108,"props":2313,"children":2314},{"style":126},[2315],{"type":52,"value":1639},{"type":46,"tag":108,"props":2317,"children":2318},{"style":412},[2319],{"type":52,"value":2320},"protected",{"type":46,"tag":108,"props":2322,"children":2323},{"style":412},[2324],{"type":52,"value":2325}," readonly",{"type":46,"tag":108,"props":2327,"children":2328},{"style":1642},[2329],{"type":52,"value":2330}," client",{"type":46,"tag":108,"props":2332,"children":2333},{"style":126},[2334],{"type":52,"value":98},{"type":46,"tag":108,"props":2336,"children":2337},{"style":418},[2338],{"type":52,"value":2339}," TClient",{"type":46,"tag":108,"props":2341,"children":2342},{"style":126},[2343],{"type":52,"value":2344},")",{"type":46,"tag":108,"props":2346,"children":2347},{"style":126},[2348],{"type":52,"value":2349}," {}\n",{"type":46,"tag":108,"props":2351,"children":2352},{"class":110,"line":185},[2353],{"type":46,"tag":108,"props":2354,"children":2355},{"emptyLinePlaceholder":544},[2356],{"type":52,"value":547},{"type":46,"tag":108,"props":2358,"children":2359},{"class":110,"line":198},[2360,2365,2370,2374,2379,2383,2387,2391,2395,2399,2404,2408],{"type":46,"tag":108,"props":2361,"children":2362},{"style":412},[2363],{"type":52,"value":2364},"  async",{"type":46,"tag":108,"props":2366,"children":2367},{"style":436},[2368],{"type":52,"value":2369}," queryRaw",{"type":46,"tag":108,"props":2371,"children":2372},{"style":126},[2373],{"type":52,"value":1639},{"type":46,"tag":108,"props":2375,"children":2376},{"style":1642},[2377],{"type":52,"value":2378},"query",{"type":46,"tag":108,"props":2380,"children":2381},{"style":126},[2382],{"type":52,"value":98},{"type":46,"tag":108,"props":2384,"children":2385},{"style":418},[2386],{"type":52,"value":421},{"type":46,"tag":108,"props":2388,"children":2389},{"style":126},[2390],{"type":52,"value":1658},{"type":46,"tag":108,"props":2392,"children":2393},{"style":418},[2394],{"type":52,"value":1663},{"type":46,"tag":108,"props":2396,"children":2397},{"style":126},[2398],{"type":52,"value":481},{"type":46,"tag":108,"props":2400,"children":2401},{"style":418},[2402],{"type":52,"value":2403},"SqlResultSet",{"type":46,"tag":108,"props":2405,"children":2406},{"style":126},[2407],{"type":52,"value":2199},{"type":46,"tag":108,"props":2409,"children":2410},{"style":126},[2411],{"type":52,"value":129},{"type":46,"tag":108,"props":2413,"children":2414},{"class":110,"line":211},[2415,2420],{"type":46,"tag":108,"props":2416,"children":2417},{"style":115},[2418],{"type":52,"value":2419},"    try",{"type":46,"tag":108,"props":2421,"children":2422},{"style":126},[2423],{"type":52,"value":129},{"type":46,"tag":108,"props":2425,"children":2426},{"class":110,"line":224},[2427,2432,2437,2441,2446,2451,2456,2460,2466,2470,2474,2479,2484,2489,2493],{"type":46,"tag":108,"props":2428,"children":2429},{"style":412},[2430],{"type":52,"value":2431},"      const",{"type":46,"tag":108,"props":2433,"children":2434},{"style":136},[2435],{"type":52,"value":2436}," args",{"type":46,"tag":108,"props":2438,"children":2439},{"style":126},[2440],{"type":52,"value":426},{"type":46,"tag":108,"props":2442,"children":2443},{"style":136},[2444],{"type":52,"value":2445}," query",{"type":46,"tag":108,"props":2447,"children":2448},{"style":126},[2449],{"type":52,"value":2450},".",{"type":46,"tag":108,"props":2452,"children":2453},{"style":136},[2454],{"type":52,"value":2455},"args",{"type":46,"tag":108,"props":2457,"children":2458},{"style":126},[2459],{"type":52,"value":2450},{"type":46,"tag":108,"props":2461,"children":2463},{"style":2462},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[2464],{"type":52,"value":2465},"map",{"type":46,"tag":108,"props":2467,"children":2468},{"style":436},[2469],{"type":52,"value":1639},{"type":46,"tag":108,"props":2471,"children":2472},{"style":126},[2473],{"type":52,"value":1639},{"type":46,"tag":108,"props":2475,"children":2476},{"style":1642},[2477],{"type":52,"value":2478},"arg",{"type":46,"tag":108,"props":2480,"children":2481},{"style":126},[2482],{"type":52,"value":2483},",",{"type":46,"tag":108,"props":2485,"children":2486},{"style":1642},[2487],{"type":52,"value":2488}," i",{"type":46,"tag":108,"props":2490,"children":2491},{"style":126},[2492],{"type":52,"value":2344},{"type":46,"tag":108,"props":2494,"children":2495},{"style":412},[2496],{"type":52,"value":2497}," =>\n",{"type":46,"tag":108,"props":2499,"children":2500},{"class":110,"line":237},[2501,2506,2510,2514,2518,2522,2526,2531,2536,2541,2546,2551,2555,2560,2564,2568,2572,2576,2580,2585,2589,2593,2597,2601,2606],{"type":46,"tag":108,"props":2502,"children":2503},{"style":2462},[2504],{"type":52,"value":2505},"        mapArg",{"type":46,"tag":108,"props":2507,"children":2508},{"style":436},[2509],{"type":52,"value":1639},{"type":46,"tag":108,"props":2511,"children":2512},{"style":136},[2513],{"type":52,"value":2478},{"type":46,"tag":108,"props":2515,"children":2516},{"style":126},[2517],{"type":52,"value":2483},{"type":46,"tag":108,"props":2519,"children":2520},{"style":136},[2521],{"type":52,"value":2445},{"type":46,"tag":108,"props":2523,"children":2524},{"style":126},[2525],{"type":52,"value":2450},{"type":46,"tag":108,"props":2527,"children":2528},{"style":136},[2529],{"type":52,"value":2530},"argTypes",{"type":46,"tag":108,"props":2532,"children":2533},{"style":436},[2534],{"type":52,"value":2535},"[",{"type":46,"tag":108,"props":2537,"children":2538},{"style":136},[2539],{"type":52,"value":2540},"i",{"type":46,"tag":108,"props":2542,"children":2543},{"style":436},[2544],{"type":52,"value":2545},"] ",{"type":46,"tag":108,"props":2547,"children":2548},{"style":126},[2549],{"type":52,"value":2550},"??",{"type":46,"tag":108,"props":2552,"children":2553},{"style":126},[2554],{"type":52,"value":1934},{"type":46,"tag":108,"props":2556,"children":2557},{"style":436},[2558],{"type":52,"value":2559}," scalarType",{"type":46,"tag":108,"props":2561,"children":2562},{"style":126},[2563],{"type":52,"value":98},{"type":46,"tag":108,"props":2565,"children":2566},{"style":126},[2567],{"type":52,"value":305},{"type":46,"tag":108,"props":2569,"children":2570},{"style":308},[2571],{"type":52,"value":486},{"type":46,"tag":108,"props":2573,"children":2574},{"style":126},[2575],{"type":52,"value":315},{"type":46,"tag":108,"props":2577,"children":2578},{"style":126},[2579],{"type":52,"value":2483},{"type":46,"tag":108,"props":2581,"children":2582},{"style":436},[2583],{"type":52,"value":2584}," arity",{"type":46,"tag":108,"props":2586,"children":2587},{"style":126},[2588],{"type":52,"value":98},{"type":46,"tag":108,"props":2590,"children":2591},{"style":126},[2592],{"type":52,"value":305},{"type":46,"tag":108,"props":2594,"children":2595},{"style":308},[2596],{"type":52,"value":635},{"type":46,"tag":108,"props":2598,"children":2599},{"style":126},[2600],{"type":52,"value":315},{"type":46,"tag":108,"props":2602,"children":2603},{"style":126},[2604],{"type":52,"value":2605}," }",{"type":46,"tag":108,"props":2607,"children":2608},{"style":436},[2609],{"type":52,"value":2610},")\n",{"type":46,"tag":108,"props":2612,"children":2613},{"class":110,"line":250},[2614,2619],{"type":46,"tag":108,"props":2615,"children":2616},{"style":436},[2617],{"type":52,"value":2618},"      )",{"type":46,"tag":108,"props":2620,"children":2621},{"style":126},[2622],{"type":52,"value":320},{"type":46,"tag":108,"props":2624,"children":2625},{"class":110,"line":263},[2626],{"type":46,"tag":108,"props":2627,"children":2628},{"emptyLinePlaceholder":544},[2629],{"type":52,"value":547},{"type":46,"tag":108,"props":2631,"children":2632},{"class":110,"line":276},[2633],{"type":46,"tag":108,"props":2634,"children":2635},{"style":456},[2636],{"type":52,"value":2637},"      \u002F\u002F Execute query with your driver\n",{"type":46,"tag":108,"props":2639,"children":2640},{"class":110,"line":289},[2641,2645,2650,2654,2659,2664,2669,2673,2677,2681,2685,2689,2694,2698,2702,2706],{"type":46,"tag":108,"props":2642,"children":2643},{"style":412},[2644],{"type":52,"value":2431},{"type":46,"tag":108,"props":2646,"children":2647},{"style":136},[2648],{"type":52,"value":2649}," result",{"type":46,"tag":108,"props":2651,"children":2652},{"style":126},[2653],{"type":52,"value":426},{"type":46,"tag":108,"props":2655,"children":2656},{"style":115},[2657],{"type":52,"value":2658}," await",{"type":46,"tag":108,"props":2660,"children":2661},{"style":126},[2662],{"type":52,"value":2663}," this.",{"type":46,"tag":108,"props":2665,"children":2666},{"style":136},[2667],{"type":52,"value":2668},"client",{"type":46,"tag":108,"props":2670,"children":2671},{"style":126},[2672],{"type":52,"value":2450},{"type":46,"tag":108,"props":2674,"children":2675},{"style":2462},[2676],{"type":52,"value":2378},{"type":46,"tag":108,"props":2678,"children":2679},{"style":436},[2680],{"type":52,"value":1639},{"type":46,"tag":108,"props":2682,"children":2683},{"style":136},[2684],{"type":52,"value":2378},{"type":46,"tag":108,"props":2686,"children":2687},{"style":126},[2688],{"type":52,"value":2450},{"type":46,"tag":108,"props":2690,"children":2691},{"style":136},[2692],{"type":52,"value":2693},"sql",{"type":46,"tag":108,"props":2695,"children":2696},{"style":126},[2697],{"type":52,"value":2483},{"type":46,"tag":108,"props":2699,"children":2700},{"style":136},[2701],{"type":52,"value":2436},{"type":46,"tag":108,"props":2703,"children":2704},{"style":436},[2705],{"type":52,"value":2344},{"type":46,"tag":108,"props":2707,"children":2708},{"style":126},[2709],{"type":52,"value":320},{"type":46,"tag":108,"props":2711,"children":2712},{"class":110,"line":323},[2713],{"type":46,"tag":108,"props":2714,"children":2715},{"emptyLinePlaceholder":544},[2716],{"type":52,"value":547},{"type":46,"tag":108,"props":2718,"children":2719},{"class":110,"line":335},[2720],{"type":46,"tag":108,"props":2721,"children":2722},{"style":456},[2723],{"type":52,"value":2724},"      \u002F\u002F Extract column metadata\n",{"type":46,"tag":108,"props":2726,"children":2727},{"class":110,"line":348},[2728,2732,2737,2741,2746],{"type":46,"tag":108,"props":2729,"children":2730},{"style":412},[2731],{"type":52,"value":2431},{"type":46,"tag":108,"props":2733,"children":2734},{"style":136},[2735],{"type":52,"value":2736}," columnNames",{"type":46,"tag":108,"props":2738,"children":2739},{"style":126},[2740],{"type":52,"value":426},{"type":46,"tag":108,"props":2742,"children":2743},{"style":456},[2744],{"type":52,"value":2745}," \u002F* get from result *\u002F",{"type":46,"tag":108,"props":2747,"children":2748},{"style":126},[2749],{"type":52,"value":320},{"type":46,"tag":108,"props":2751,"children":2752},{"class":110,"line":361},[2753,2757,2762,2766,2771],{"type":46,"tag":108,"props":2754,"children":2755},{"style":412},[2756],{"type":52,"value":2431},{"type":46,"tag":108,"props":2758,"children":2759},{"style":136},[2760],{"type":52,"value":2761}," columnTypes",{"type":46,"tag":108,"props":2763,"children":2764},{"style":126},[2765],{"type":52,"value":426},{"type":46,"tag":108,"props":2767,"children":2768},{"style":456},[2769],{"type":52,"value":2770}," \u002F* map to ColumnTypeEnum *\u002F",{"type":46,"tag":108,"props":2772,"children":2773},{"style":126},[2774],{"type":52,"value":320},{"type":46,"tag":108,"props":2776,"children":2777},{"class":110,"line":1238},[2778],{"type":46,"tag":108,"props":2779,"children":2780},{"emptyLinePlaceholder":544},[2781],{"type":52,"value":547},{"type":46,"tag":108,"props":2783,"children":2784},{"class":110,"line":1260},[2785],{"type":46,"tag":108,"props":2786,"children":2787},{"style":456},[2788],{"type":52,"value":2789},"      \u002F\u002F Map rows to ResultValue arrays\n",{"type":46,"tag":108,"props":2791,"children":2792},{"class":110,"line":1282},[2793,2797,2802,2806,2810,2814,2818,2822,2827,2832,2837,2841,2845,2849,2853,2858],{"type":46,"tag":108,"props":2794,"children":2795},{"style":412},[2796],{"type":52,"value":2431},{"type":46,"tag":108,"props":2798,"children":2799},{"style":136},[2800],{"type":52,"value":2801}," rows",{"type":46,"tag":108,"props":2803,"children":2804},{"style":126},[2805],{"type":52,"value":426},{"type":46,"tag":108,"props":2807,"children":2808},{"style":136},[2809],{"type":52,"value":2649},{"type":46,"tag":108,"props":2811,"children":2812},{"style":126},[2813],{"type":52,"value":2450},{"type":46,"tag":108,"props":2815,"children":2816},{"style":2462},[2817],{"type":52,"value":2465},{"type":46,"tag":108,"props":2819,"children":2820},{"style":436},[2821],{"type":52,"value":1639},{"type":46,"tag":108,"props":2823,"children":2824},{"style":1642},[2825],{"type":52,"value":2826},"row",{"type":46,"tag":108,"props":2828,"children":2829},{"style":412},[2830],{"type":52,"value":2831}," =>",{"type":46,"tag":108,"props":2833,"children":2834},{"style":2462},[2835],{"type":52,"value":2836}," mapRow",{"type":46,"tag":108,"props":2838,"children":2839},{"style":436},[2840],{"type":52,"value":1639},{"type":46,"tag":108,"props":2842,"children":2843},{"style":136},[2844],{"type":52,"value":2826},{"type":46,"tag":108,"props":2846,"children":2847},{"style":126},[2848],{"type":52,"value":2483},{"type":46,"tag":108,"props":2850,"children":2851},{"style":136},[2852],{"type":52,"value":2761},{"type":46,"tag":108,"props":2854,"children":2855},{"style":436},[2856],{"type":52,"value":2857},"))",{"type":46,"tag":108,"props":2859,"children":2860},{"style":126},[2861],{"type":52,"value":320},{"type":46,"tag":108,"props":2863,"children":2864},{"class":110,"line":1304},[2865],{"type":46,"tag":108,"props":2866,"children":2867},{"emptyLinePlaceholder":544},[2868],{"type":52,"value":547},{"type":46,"tag":108,"props":2870,"children":2871},{"class":110,"line":1326},[2872,2877,2881,2885,2889,2893,2897,2901],{"type":46,"tag":108,"props":2873,"children":2874},{"style":115},[2875],{"type":52,"value":2876},"      return",{"type":46,"tag":108,"props":2878,"children":2879},{"style":126},[2880],{"type":52,"value":1934},{"type":46,"tag":108,"props":2882,"children":2883},{"style":136},[2884],{"type":52,"value":2736},{"type":46,"tag":108,"props":2886,"children":2887},{"style":126},[2888],{"type":52,"value":2483},{"type":46,"tag":108,"props":2890,"children":2891},{"style":136},[2892],{"type":52,"value":2761},{"type":46,"tag":108,"props":2894,"children":2895},{"style":126},[2896],{"type":52,"value":2483},{"type":46,"tag":108,"props":2898,"children":2899},{"style":136},[2900],{"type":52,"value":2801},{"type":46,"tag":108,"props":2902,"children":2903},{"style":126},[2904],{"type":52,"value":1953},{"type":46,"tag":108,"props":2906,"children":2907},{"class":110,"line":1348},[2908,2913,2918,2923,2928,2933],{"type":46,"tag":108,"props":2909,"children":2910},{"style":126},[2911],{"type":52,"value":2912},"    }",{"type":46,"tag":108,"props":2914,"children":2915},{"style":115},[2916],{"type":52,"value":2917}," catch",{"type":46,"tag":108,"props":2919,"children":2920},{"style":436},[2921],{"type":52,"value":2922}," (",{"type":46,"tag":108,"props":2924,"children":2925},{"style":136},[2926],{"type":52,"value":2927},"e",{"type":46,"tag":108,"props":2929,"children":2930},{"style":436},[2931],{"type":52,"value":2932},") ",{"type":46,"tag":108,"props":2934,"children":2935},{"style":126},[2936],{"type":52,"value":2937},"{\n",{"type":46,"tag":108,"props":2939,"children":2940},{"class":110,"line":1370},[2941,2946,2951,2955,2959,2963],{"type":46,"tag":108,"props":2942,"children":2943},{"style":126},[2944],{"type":52,"value":2945},"      this.",{"type":46,"tag":108,"props":2947,"children":2948},{"style":2462},[2949],{"type":52,"value":2950},"onError",{"type":46,"tag":108,"props":2952,"children":2953},{"style":436},[2954],{"type":52,"value":1639},{"type":46,"tag":108,"props":2956,"children":2957},{"style":136},[2958],{"type":52,"value":2927},{"type":46,"tag":108,"props":2960,"children":2961},{"style":436},[2962],{"type":52,"value":2344},{"type":46,"tag":108,"props":2964,"children":2965},{"style":126},[2966],{"type":52,"value":320},{"type":46,"tag":108,"props":2968,"children":2969},{"class":110,"line":1392},[2970],{"type":46,"tag":108,"props":2971,"children":2972},{"style":126},[2973],{"type":52,"value":2974},"    }\n",{"type":46,"tag":108,"props":2976,"children":2977},{"class":110,"line":1414},[2978],{"type":46,"tag":108,"props":2979,"children":2980},{"style":126},[2981],{"type":52,"value":2982},"  }\n",{"type":46,"tag":108,"props":2984,"children":2985},{"class":110,"line":1436},[2986],{"type":46,"tag":108,"props":2987,"children":2988},{"emptyLinePlaceholder":544},[2989],{"type":52,"value":547},{"type":46,"tag":108,"props":2991,"children":2992},{"class":110,"line":1458},[2993,2997,3002,3006,3010,3014,3018,3022,3026,3030,3035,3039],{"type":46,"tag":108,"props":2994,"children":2995},{"style":412},[2996],{"type":52,"value":2364},{"type":46,"tag":108,"props":2998,"children":2999},{"style":436},[3000],{"type":52,"value":3001}," executeRaw",{"type":46,"tag":108,"props":3003,"children":3004},{"style":126},[3005],{"type":52,"value":1639},{"type":46,"tag":108,"props":3007,"children":3008},{"style":1642},[3009],{"type":52,"value":2378},{"type":46,"tag":108,"props":3011,"children":3012},{"style":126},[3013],{"type":52,"value":98},{"type":46,"tag":108,"props":3015,"children":3016},{"style":418},[3017],{"type":52,"value":421},{"type":46,"tag":108,"props":3019,"children":3020},{"style":126},[3021],{"type":52,"value":1658},{"type":46,"tag":108,"props":3023,"children":3024},{"style":418},[3025],{"type":52,"value":1663},{"type":46,"tag":108,"props":3027,"children":3028},{"style":126},[3029],{"type":52,"value":481},{"type":46,"tag":108,"props":3031,"children":3032},{"style":418},[3033],{"type":52,"value":3034},"number",{"type":46,"tag":108,"props":3036,"children":3037},{"style":126},[3038],{"type":52,"value":2199},{"type":46,"tag":108,"props":3040,"children":3041},{"style":126},[3042],{"type":52,"value":129},{"type":46,"tag":108,"props":3044,"children":3045},{"class":110,"line":1480},[3046,3050],{"type":46,"tag":108,"props":3047,"children":3048},{"style":115},[3049],{"type":52,"value":2419},{"type":46,"tag":108,"props":3051,"children":3052},{"style":126},[3053],{"type":52,"value":129},{"type":46,"tag":108,"props":3055,"children":3056},{"class":110,"line":1502},[3057,3061,3065,3069,3073,3077,3081,3085,3089,3093,3097,3101,3105,3109,3113],{"type":46,"tag":108,"props":3058,"children":3059},{"style":412},[3060],{"type":52,"value":2431},{"type":46,"tag":108,"props":3062,"children":3063},{"style":136},[3064],{"type":52,"value":2436},{"type":46,"tag":108,"props":3066,"children":3067},{"style":126},[3068],{"type":52,"value":426},{"type":46,"tag":108,"props":3070,"children":3071},{"style":136},[3072],{"type":52,"value":2445},{"type":46,"tag":108,"props":3074,"children":3075},{"style":126},[3076],{"type":52,"value":2450},{"type":46,"tag":108,"props":3078,"children":3079},{"style":136},[3080],{"type":52,"value":2455},{"type":46,"tag":108,"props":3082,"children":3083},{"style":126},[3084],{"type":52,"value":2450},{"type":46,"tag":108,"props":3086,"children":3087},{"style":2462},[3088],{"type":52,"value":2465},{"type":46,"tag":108,"props":3090,"children":3091},{"style":436},[3092],{"type":52,"value":1639},{"type":46,"tag":108,"props":3094,"children":3095},{"style":126},[3096],{"type":52,"value":1639},{"type":46,"tag":108,"props":3098,"children":3099},{"style":1642},[3100],{"type":52,"value":2478},{"type":46,"tag":108,"props":3102,"children":3103},{"style":126},[3104],{"type":52,"value":2483},{"type":46,"tag":108,"props":3106,"children":3107},{"style":1642},[3108],{"type":52,"value":2488},{"type":46,"tag":108,"props":3110,"children":3111},{"style":126},[3112],{"type":52,"value":2344},{"type":46,"tag":108,"props":3114,"children":3115},{"style":412},[3116],{"type":52,"value":2497},{"type":46,"tag":108,"props":3118,"children":3119},{"class":110,"line":1524},[3120,3124,3128,3132,3136,3140,3144,3148,3152,3156,3160,3164,3168,3172,3176,3180,3184,3188,3192,3196,3200,3204,3208,3212,3216],{"type":46,"tag":108,"props":3121,"children":3122},{"style":2462},[3123],{"type":52,"value":2505},{"type":46,"tag":108,"props":3125,"children":3126},{"style":436},[3127],{"type":52,"value":1639},{"type":46,"tag":108,"props":3129,"children":3130},{"style":136},[3131],{"type":52,"value":2478},{"type":46,"tag":108,"props":3133,"children":3134},{"style":126},[3135],{"type":52,"value":2483},{"type":46,"tag":108,"props":3137,"children":3138},{"style":136},[3139],{"type":52,"value":2445},{"type":46,"tag":108,"props":3141,"children":3142},{"style":126},[3143],{"type":52,"value":2450},{"type":46,"tag":108,"props":3145,"children":3146},{"style":136},[3147],{"type":52,"value":2530},{"type":46,"tag":108,"props":3149,"children":3150},{"style":436},[3151],{"type":52,"value":2535},{"type":46,"tag":108,"props":3153,"children":3154},{"style":136},[3155],{"type":52,"value":2540},{"type":46,"tag":108,"props":3157,"children":3158},{"style":436},[3159],{"type":52,"value":2545},{"type":46,"tag":108,"props":3161,"children":3162},{"style":126},[3163],{"type":52,"value":2550},{"type":46,"tag":108,"props":3165,"children":3166},{"style":126},[3167],{"type":52,"value":1934},{"type":46,"tag":108,"props":3169,"children":3170},{"style":436},[3171],{"type":52,"value":2559},{"type":46,"tag":108,"props":3173,"children":3174},{"style":126},[3175],{"type":52,"value":98},{"type":46,"tag":108,"props":3177,"children":3178},{"style":126},[3179],{"type":52,"value":305},{"type":46,"tag":108,"props":3181,"children":3182},{"style":308},[3183],{"type":52,"value":486},{"type":46,"tag":108,"props":3185,"children":3186},{"style":126},[3187],{"type":52,"value":315},{"type":46,"tag":108,"props":3189,"children":3190},{"style":126},[3191],{"type":52,"value":2483},{"type":46,"tag":108,"props":3193,"children":3194},{"style":436},[3195],{"type":52,"value":2584},{"type":46,"tag":108,"props":3197,"children":3198},{"style":126},[3199],{"type":52,"value":98},{"type":46,"tag":108,"props":3201,"children":3202},{"style":126},[3203],{"type":52,"value":305},{"type":46,"tag":108,"props":3205,"children":3206},{"style":308},[3207],{"type":52,"value":635},{"type":46,"tag":108,"props":3209,"children":3210},{"style":126},[3211],{"type":52,"value":315},{"type":46,"tag":108,"props":3213,"children":3214},{"style":126},[3215],{"type":52,"value":2605},{"type":46,"tag":108,"props":3217,"children":3218},{"style":436},[3219],{"type":52,"value":2610},{"type":46,"tag":108,"props":3221,"children":3222},{"class":110,"line":1546},[3223,3227],{"type":46,"tag":108,"props":3224,"children":3225},{"style":436},[3226],{"type":52,"value":2618},{"type":46,"tag":108,"props":3228,"children":3229},{"style":126},[3230],{"type":52,"value":320},{"type":46,"tag":108,"props":3232,"children":3233},{"class":110,"line":1568},[3234,3238,3242,3246,3250,3254,3258,3262,3266,3270,3274,3278,3282,3286,3290,3294],{"type":46,"tag":108,"props":3235,"children":3236},{"style":412},[3237],{"type":52,"value":2431},{"type":46,"tag":108,"props":3239,"children":3240},{"style":136},[3241],{"type":52,"value":2649},{"type":46,"tag":108,"props":3243,"children":3244},{"style":126},[3245],{"type":52,"value":426},{"type":46,"tag":108,"props":3247,"children":3248},{"style":115},[3249],{"type":52,"value":2658},{"type":46,"tag":108,"props":3251,"children":3252},{"style":126},[3253],{"type":52,"value":2663},{"type":46,"tag":108,"props":3255,"children":3256},{"style":136},[3257],{"type":52,"value":2668},{"type":46,"tag":108,"props":3259,"children":3260},{"style":126},[3261],{"type":52,"value":2450},{"type":46,"tag":108,"props":3263,"children":3264},{"style":2462},[3265],{"type":52,"value":2378},{"type":46,"tag":108,"props":3267,"children":3268},{"style":436},[3269],{"type":52,"value":1639},{"type":46,"tag":108,"props":3271,"children":3272},{"style":136},[3273],{"type":52,"value":2378},{"type":46,"tag":108,"props":3275,"children":3276},{"style":126},[3277],{"type":52,"value":2450},{"type":46,"tag":108,"props":3279,"children":3280},{"style":136},[3281],{"type":52,"value":2693},{"type":46,"tag":108,"props":3283,"children":3284},{"style":126},[3285],{"type":52,"value":2483},{"type":46,"tag":108,"props":3287,"children":3288},{"style":136},[3289],{"type":52,"value":2436},{"type":46,"tag":108,"props":3291,"children":3292},{"style":436},[3293],{"type":52,"value":2344},{"type":46,"tag":108,"props":3295,"children":3296},{"style":126},[3297],{"type":52,"value":320},{"type":46,"tag":108,"props":3299,"children":3301},{"class":110,"line":3300},35,[3302,3306,3310,3314,3319,3324,3328],{"type":46,"tag":108,"props":3303,"children":3304},{"style":115},[3305],{"type":52,"value":2876},{"type":46,"tag":108,"props":3307,"children":3308},{"style":136},[3309],{"type":52,"value":2649},{"type":46,"tag":108,"props":3311,"children":3312},{"style":126},[3313],{"type":52,"value":2450},{"type":46,"tag":108,"props":3315,"children":3316},{"style":136},[3317],{"type":52,"value":3318},"affectedRows",{"type":46,"tag":108,"props":3320,"children":3321},{"style":126},[3322],{"type":52,"value":3323}," ??",{"type":46,"tag":108,"props":3325,"children":3326},{"style":892},[3327],{"type":52,"value":895},{"type":46,"tag":108,"props":3329,"children":3330},{"style":126},[3331],{"type":52,"value":320},{"type":46,"tag":108,"props":3333,"children":3335},{"class":110,"line":3334},36,[3336,3340,3344,3348,3352,3356],{"type":46,"tag":108,"props":3337,"children":3338},{"style":126},[3339],{"type":52,"value":2912},{"type":46,"tag":108,"props":3341,"children":3342},{"style":115},[3343],{"type":52,"value":2917},{"type":46,"tag":108,"props":3345,"children":3346},{"style":436},[3347],{"type":52,"value":2922},{"type":46,"tag":108,"props":3349,"children":3350},{"style":136},[3351],{"type":52,"value":2927},{"type":46,"tag":108,"props":3353,"children":3354},{"style":436},[3355],{"type":52,"value":2932},{"type":46,"tag":108,"props":3357,"children":3358},{"style":126},[3359],{"type":52,"value":2937},{"type":46,"tag":108,"props":3361,"children":3363},{"class":110,"line":3362},37,[3364,3368,3372,3376,3380,3384],{"type":46,"tag":108,"props":3365,"children":3366},{"style":126},[3367],{"type":52,"value":2945},{"type":46,"tag":108,"props":3369,"children":3370},{"style":2462},[3371],{"type":52,"value":2950},{"type":46,"tag":108,"props":3373,"children":3374},{"style":436},[3375],{"type":52,"value":1639},{"type":46,"tag":108,"props":3377,"children":3378},{"style":136},[3379],{"type":52,"value":2927},{"type":46,"tag":108,"props":3381,"children":3382},{"style":436},[3383],{"type":52,"value":2344},{"type":46,"tag":108,"props":3385,"children":3386},{"style":126},[3387],{"type":52,"value":320},{"type":46,"tag":108,"props":3389,"children":3391},{"class":110,"line":3390},38,[3392],{"type":46,"tag":108,"props":3393,"children":3394},{"style":126},[3395],{"type":52,"value":2974},{"type":46,"tag":108,"props":3397,"children":3399},{"class":110,"line":3398},39,[3400],{"type":46,"tag":108,"props":3401,"children":3402},{"style":126},[3403],{"type":52,"value":2982},{"type":46,"tag":108,"props":3405,"children":3407},{"class":110,"line":3406},40,[3408],{"type":46,"tag":108,"props":3409,"children":3410},{"emptyLinePlaceholder":544},[3411],{"type":52,"value":547},{"type":46,"tag":108,"props":3413,"children":3415},{"class":110,"line":3414},41,[3416,3421,3426,3430,3435,3439,3444,3448,3453],{"type":46,"tag":108,"props":3417,"children":3418},{"style":412},[3419],{"type":52,"value":3420},"  protected",{"type":46,"tag":108,"props":3422,"children":3423},{"style":436},[3424],{"type":52,"value":3425}," onError",{"type":46,"tag":108,"props":3427,"children":3428},{"style":126},[3429],{"type":52,"value":1639},{"type":46,"tag":108,"props":3431,"children":3432},{"style":1642},[3433],{"type":52,"value":3434},"error",{"type":46,"tag":108,"props":3436,"children":3437},{"style":126},[3438],{"type":52,"value":98},{"type":46,"tag":108,"props":3440,"children":3441},{"style":418},[3442],{"type":52,"value":3443}," unknown",{"type":46,"tag":108,"props":3445,"children":3446},{"style":126},[3447],{"type":52,"value":1658},{"type":46,"tag":108,"props":3449,"children":3450},{"style":418},[3451],{"type":52,"value":3452}," never",{"type":46,"tag":108,"props":3454,"children":3455},{"style":126},[3456],{"type":52,"value":129},{"type":46,"tag":108,"props":3458,"children":3460},{"class":110,"line":3459},42,[3461,3466,3471,3476,3480,3485,3489,3493,3497],{"type":46,"tag":108,"props":3462,"children":3463},{"style":115},[3464],{"type":52,"value":3465},"    throw",{"type":46,"tag":108,"props":3467,"children":3468},{"style":126},[3469],{"type":52,"value":3470}," new",{"type":46,"tag":108,"props":3472,"children":3473},{"style":2462},[3474],{"type":52,"value":3475}," DriverAdapterError",{"type":46,"tag":108,"props":3477,"children":3478},{"style":436},[3479],{"type":52,"value":1639},{"type":46,"tag":108,"props":3481,"children":3482},{"style":2462},[3483],{"type":52,"value":3484},"convertDriverError",{"type":46,"tag":108,"props":3486,"children":3487},{"style":436},[3488],{"type":52,"value":1639},{"type":46,"tag":108,"props":3490,"children":3491},{"style":136},[3492],{"type":52,"value":3434},{"type":46,"tag":108,"props":3494,"children":3495},{"style":436},[3496],{"type":52,"value":2857},{"type":46,"tag":108,"props":3498,"children":3499},{"style":126},[3500],{"type":52,"value":320},{"type":46,"tag":108,"props":3502,"children":3504},{"class":110,"line":3503},43,[3505],{"type":46,"tag":108,"props":3506,"children":3507},{"style":126},[3508],{"type":52,"value":2982},{"type":46,"tag":108,"props":3510,"children":3511},{"class":110,"line":26},[3512],{"type":46,"tag":108,"props":3513,"children":3514},{"style":126},[3515],{"type":52,"value":842},{"type":46,"tag":394,"props":3517,"children":3519},{"id":3518},"step-2-create-the-transaction-class",[3520],{"type":52,"value":3521},"Step 2: Create the Transaction class",{"type":46,"tag":55,"props":3523,"children":3524},{},[3525,3531,3533,3539,3541,3547,3549,3554,3556,3562,3564,3570,3572,3578],{"type":46,"tag":3526,"props":3527,"children":3528},"strong",{},[3529],{"type":52,"value":3530},"Critical",{"type":52,"value":3532},": ",{"type":46,"tag":75,"props":3534,"children":3536},{"className":3535},[],[3537],{"type":52,"value":3538},"commit()",{"type":52,"value":3540}," and ",{"type":46,"tag":75,"props":3542,"children":3544},{"className":3543},[],[3545],{"type":52,"value":3546},"rollback()",{"type":52,"value":3548}," are ",{"type":46,"tag":3526,"props":3550,"children":3551},{},[3552],{"type":52,"value":3553},"lifecycle hooks only",{"type":52,"value":3555},". They must NOT issue SQL. Prisma sends ",{"type":46,"tag":75,"props":3557,"children":3559},{"className":3558},[],[3560],{"type":52,"value":3561},"COMMIT",{"type":52,"value":3563},"\u002F",{"type":46,"tag":75,"props":3565,"children":3567},{"className":3566},[],[3568],{"type":52,"value":3569},"ROLLBACK",{"type":52,"value":3571}," via ",{"type":46,"tag":75,"props":3573,"children":3575},{"className":3574},[],[3576],{"type":52,"value":3577},"executeRaw",{"type":52,"value":3579}," on the transaction object.",{"type":46,"tag":68,"props":3581,"children":3583},{"className":101,"code":3582,"language":14,"meta":77,"style":77},"class MyTransaction extends MyQueryable\u003CTClient> implements Transaction {\n  readonly options: TransactionOptions;\n  readonly #release: () => void;\n\n  constructor(\n    client: TClient,\n    options: TransactionOptions,\n    release: () => void,\n  ) {\n    super(client);\n    this.options = options;\n    this.#release = release;\n  }\n\n  commit(): Promise\u003Cvoid> {\n    \u002F\u002F DO NOT issue COMMIT SQL here — Prisma does it via executeRaw\n    this.#release(); \u002F\u002F Release connection\u002Fresources\n    return Promise.resolve();\n  }\n\n  rollback(): Promise\u003Cvoid> {\n    \u002F\u002F DO NOT issue ROLLBACK SQL here — Prisma does it via executeRaw\n    this.#release();\n    return Promise.resolve();\n  }\n}\n",[3584],{"type":46,"tag":75,"props":3585,"children":3586},{"__ignoreMap":77},[3587,3631,3654,3688,3695,3707,3727,3747,3775,3787,3811,3836,3861,3868,3875,3906,3914,3939,3968,3975,3982,4013,4021,4040,4067,4074],{"type":46,"tag":108,"props":3588,"children":3589},{"class":110,"line":111},[3590,3594,3599,3603,3607,3611,3615,3619,3623,3627],{"type":46,"tag":108,"props":3591,"children":3592},{"style":412},[3593],{"type":52,"value":2180},{"type":46,"tag":108,"props":3595,"children":3596},{"style":418},[3597],{"type":52,"value":3598}," MyTransaction",{"type":46,"tag":108,"props":3600,"children":3601},{"style":412},[3602],{"type":52,"value":1617},{"type":46,"tag":108,"props":3604,"children":3605},{"style":418},[3606],{"type":52,"value":2185},{"type":46,"tag":108,"props":3608,"children":3609},{"style":126},[3610],{"type":52,"value":481},{"type":46,"tag":108,"props":3612,"children":3613},{"style":418},[3614],{"type":52,"value":2194},{"type":46,"tag":108,"props":3616,"children":3617},{"style":126},[3618],{"type":52,"value":2199},{"type":46,"tag":108,"props":3620,"children":3621},{"style":412},[3622],{"type":52,"value":2204},{"type":46,"tag":108,"props":3624,"children":3625},{"style":418},[3626],{"type":52,"value":1806},{"type":46,"tag":108,"props":3628,"children":3629},{"style":126},[3630],{"type":52,"value":129},{"type":46,"tag":108,"props":3632,"children":3633},{"class":110,"line":132},[3634,3638,3642,3646,3650],{"type":46,"tag":108,"props":3635,"children":3636},{"style":412},[3637],{"type":52,"value":1826},{"type":46,"tag":108,"props":3639,"children":3640},{"style":436},[3641],{"type":52,"value":1831},{"type":46,"tag":108,"props":3643,"children":3644},{"style":126},[3645],{"type":52,"value":98},{"type":46,"tag":108,"props":3647,"children":3648},{"style":418},[3649],{"type":52,"value":1840},{"type":46,"tag":108,"props":3651,"children":3652},{"style":126},[3653],{"type":52,"value":320},{"type":46,"tag":108,"props":3655,"children":3656},{"class":110,"line":30},[3657,3661,3666,3670,3675,3679,3684],{"type":46,"tag":108,"props":3658,"children":3659},{"style":412},[3660],{"type":52,"value":1826},{"type":46,"tag":108,"props":3662,"children":3663},{"style":436},[3664],{"type":52,"value":3665}," #release",{"type":46,"tag":108,"props":3667,"children":3668},{"style":126},[3669],{"type":52,"value":98},{"type":46,"tag":108,"props":3671,"children":3672},{"style":126},[3673],{"type":52,"value":3674}," ()",{"type":46,"tag":108,"props":3676,"children":3677},{"style":412},[3678],{"type":52,"value":2831},{"type":46,"tag":108,"props":3680,"children":3681},{"style":418},[3682],{"type":52,"value":3683}," void",{"type":46,"tag":108,"props":3685,"children":3686},{"style":126},[3687],{"type":52,"value":320},{"type":46,"tag":108,"props":3689,"children":3690},{"class":110,"line":159},[3691],{"type":46,"tag":108,"props":3692,"children":3693},{"emptyLinePlaceholder":544},[3694],{"type":52,"value":547},{"type":46,"tag":108,"props":3696,"children":3697},{"class":110,"line":172},[3698,3702],{"type":46,"tag":108,"props":3699,"children":3700},{"style":412},[3701],{"type":52,"value":2311},{"type":46,"tag":108,"props":3703,"children":3704},{"style":126},[3705],{"type":52,"value":3706},"(\n",{"type":46,"tag":108,"props":3708,"children":3709},{"class":110,"line":185},[3710,3715,3719,3723],{"type":46,"tag":108,"props":3711,"children":3712},{"style":1642},[3713],{"type":52,"value":3714},"    client",{"type":46,"tag":108,"props":3716,"children":3717},{"style":126},[3718],{"type":52,"value":98},{"type":46,"tag":108,"props":3720,"children":3721},{"style":418},[3722],{"type":52,"value":2339},{"type":46,"tag":108,"props":3724,"children":3725},{"style":126},[3726],{"type":52,"value":144},{"type":46,"tag":108,"props":3728,"children":3729},{"class":110,"line":198},[3730,3735,3739,3743],{"type":46,"tag":108,"props":3731,"children":3732},{"style":1642},[3733],{"type":52,"value":3734},"    options",{"type":46,"tag":108,"props":3736,"children":3737},{"style":126},[3738],{"type":52,"value":98},{"type":46,"tag":108,"props":3740,"children":3741},{"style":418},[3742],{"type":52,"value":1840},{"type":46,"tag":108,"props":3744,"children":3745},{"style":126},[3746],{"type":52,"value":144},{"type":46,"tag":108,"props":3748,"children":3749},{"class":110,"line":211},[3750,3755,3759,3763,3767,3771],{"type":46,"tag":108,"props":3751,"children":3752},{"style":2462},[3753],{"type":52,"value":3754},"    release",{"type":46,"tag":108,"props":3756,"children":3757},{"style":126},[3758],{"type":52,"value":98},{"type":46,"tag":108,"props":3760,"children":3761},{"style":126},[3762],{"type":52,"value":3674},{"type":46,"tag":108,"props":3764,"children":3765},{"style":412},[3766],{"type":52,"value":2831},{"type":46,"tag":108,"props":3768,"children":3769},{"style":418},[3770],{"type":52,"value":3683},{"type":46,"tag":108,"props":3772,"children":3773},{"style":126},[3774],{"type":52,"value":144},{"type":46,"tag":108,"props":3776,"children":3777},{"class":110,"line":224},[3778,3783],{"type":46,"tag":108,"props":3779,"children":3780},{"style":126},[3781],{"type":52,"value":3782},"  )",{"type":46,"tag":108,"props":3784,"children":3785},{"style":126},[3786],{"type":52,"value":129},{"type":46,"tag":108,"props":3788,"children":3789},{"class":110,"line":237},[3790,3795,3799,3803,3807],{"type":46,"tag":108,"props":3791,"children":3792},{"style":136},[3793],{"type":52,"value":3794},"    super",{"type":46,"tag":108,"props":3796,"children":3797},{"style":436},[3798],{"type":52,"value":1639},{"type":46,"tag":108,"props":3800,"children":3801},{"style":136},[3802],{"type":52,"value":2668},{"type":46,"tag":108,"props":3804,"children":3805},{"style":436},[3806],{"type":52,"value":2344},{"type":46,"tag":108,"props":3808,"children":3809},{"style":126},[3810],{"type":52,"value":320},{"type":46,"tag":108,"props":3812,"children":3813},{"class":110,"line":250},[3814,3819,3824,3828,3832],{"type":46,"tag":108,"props":3815,"children":3816},{"style":126},[3817],{"type":52,"value":3818},"    this.",{"type":46,"tag":108,"props":3820,"children":3821},{"style":136},[3822],{"type":52,"value":3823},"options",{"type":46,"tag":108,"props":3825,"children":3826},{"style":126},[3827],{"type":52,"value":426},{"type":46,"tag":108,"props":3829,"children":3830},{"style":136},[3831],{"type":52,"value":1831},{"type":46,"tag":108,"props":3833,"children":3834},{"style":126},[3835],{"type":52,"value":320},{"type":46,"tag":108,"props":3837,"children":3838},{"class":110,"line":263},[3839,3843,3848,3852,3857],{"type":46,"tag":108,"props":3840,"children":3841},{"style":126},[3842],{"type":52,"value":3818},{"type":46,"tag":108,"props":3844,"children":3845},{"style":136},[3846],{"type":52,"value":3847},"#release",{"type":46,"tag":108,"props":3849,"children":3850},{"style":126},[3851],{"type":52,"value":426},{"type":46,"tag":108,"props":3853,"children":3854},{"style":136},[3855],{"type":52,"value":3856}," release",{"type":46,"tag":108,"props":3858,"children":3859},{"style":126},[3860],{"type":52,"value":320},{"type":46,"tag":108,"props":3862,"children":3863},{"class":110,"line":276},[3864],{"type":46,"tag":108,"props":3865,"children":3866},{"style":126},[3867],{"type":52,"value":2982},{"type":46,"tag":108,"props":3869,"children":3870},{"class":110,"line":289},[3871],{"type":46,"tag":108,"props":3872,"children":3873},{"emptyLinePlaceholder":544},[3874],{"type":52,"value":547},{"type":46,"tag":108,"props":3876,"children":3877},{"class":110,"line":323},[3878,3882,3886,3890,3894,3898,3902],{"type":46,"tag":108,"props":3879,"children":3880},{"style":436},[3881],{"type":52,"value":1852},{"type":46,"tag":108,"props":3883,"children":3884},{"style":126},[3885],{"type":52,"value":1759},{"type":46,"tag":108,"props":3887,"children":3888},{"style":418},[3889],{"type":52,"value":1663},{"type":46,"tag":108,"props":3891,"children":3892},{"style":126},[3893],{"type":52,"value":481},{"type":46,"tag":108,"props":3895,"children":3896},{"style":418},[3897],{"type":52,"value":1672},{"type":46,"tag":108,"props":3899,"children":3900},{"style":126},[3901],{"type":52,"value":2199},{"type":46,"tag":108,"props":3903,"children":3904},{"style":126},[3905],{"type":52,"value":129},{"type":46,"tag":108,"props":3907,"children":3908},{"class":110,"line":335},[3909],{"type":46,"tag":108,"props":3910,"children":3911},{"style":456},[3912],{"type":52,"value":3913},"    \u002F\u002F DO NOT issue COMMIT SQL here — Prisma does it via executeRaw\n",{"type":46,"tag":108,"props":3915,"children":3916},{"class":110,"line":348},[3917,3921,3925,3930,3934],{"type":46,"tag":108,"props":3918,"children":3919},{"style":126},[3920],{"type":52,"value":3818},{"type":46,"tag":108,"props":3922,"children":3923},{"style":2462},[3924],{"type":52,"value":3847},{"type":46,"tag":108,"props":3926,"children":3927},{"style":436},[3928],{"type":52,"value":3929},"()",{"type":46,"tag":108,"props":3931,"children":3932},{"style":126},[3933],{"type":52,"value":453},{"type":46,"tag":108,"props":3935,"children":3936},{"style":456},[3937],{"type":52,"value":3938}," \u002F\u002F Release connection\u002Fresources\n",{"type":46,"tag":108,"props":3940,"children":3941},{"class":110,"line":361},[3942,3947,3951,3955,3960,3964],{"type":46,"tag":108,"props":3943,"children":3944},{"style":115},[3945],{"type":52,"value":3946},"    return",{"type":46,"tag":108,"props":3948,"children":3949},{"style":418},[3950],{"type":52,"value":1663},{"type":46,"tag":108,"props":3952,"children":3953},{"style":126},[3954],{"type":52,"value":2450},{"type":46,"tag":108,"props":3956,"children":3957},{"style":2462},[3958],{"type":52,"value":3959},"resolve",{"type":46,"tag":108,"props":3961,"children":3962},{"style":436},[3963],{"type":52,"value":3929},{"type":46,"tag":108,"props":3965,"children":3966},{"style":126},[3967],{"type":52,"value":320},{"type":46,"tag":108,"props":3969,"children":3970},{"class":110,"line":1238},[3971],{"type":46,"tag":108,"props":3972,"children":3973},{"style":126},[3974],{"type":52,"value":2982},{"type":46,"tag":108,"props":3976,"children":3977},{"class":110,"line":1260},[3978],{"type":46,"tag":108,"props":3979,"children":3980},{"emptyLinePlaceholder":544},[3981],{"type":52,"value":547},{"type":46,"tag":108,"props":3983,"children":3984},{"class":110,"line":1282},[3985,3989,3993,3997,4001,4005,4009],{"type":46,"tag":108,"props":3986,"children":3987},{"style":436},[3988],{"type":52,"value":1880},{"type":46,"tag":108,"props":3990,"children":3991},{"style":126},[3992],{"type":52,"value":1759},{"type":46,"tag":108,"props":3994,"children":3995},{"style":418},[3996],{"type":52,"value":1663},{"type":46,"tag":108,"props":3998,"children":3999},{"style":126},[4000],{"type":52,"value":481},{"type":46,"tag":108,"props":4002,"children":4003},{"style":418},[4004],{"type":52,"value":1672},{"type":46,"tag":108,"props":4006,"children":4007},{"style":126},[4008],{"type":52,"value":2199},{"type":46,"tag":108,"props":4010,"children":4011},{"style":126},[4012],{"type":52,"value":129},{"type":46,"tag":108,"props":4014,"children":4015},{"class":110,"line":1304},[4016],{"type":46,"tag":108,"props":4017,"children":4018},{"style":456},[4019],{"type":52,"value":4020},"    \u002F\u002F DO NOT issue ROLLBACK SQL here — Prisma does it via executeRaw\n",{"type":46,"tag":108,"props":4022,"children":4023},{"class":110,"line":1326},[4024,4028,4032,4036],{"type":46,"tag":108,"props":4025,"children":4026},{"style":126},[4027],{"type":52,"value":3818},{"type":46,"tag":108,"props":4029,"children":4030},{"style":2462},[4031],{"type":52,"value":3847},{"type":46,"tag":108,"props":4033,"children":4034},{"style":436},[4035],{"type":52,"value":3929},{"type":46,"tag":108,"props":4037,"children":4038},{"style":126},[4039],{"type":52,"value":320},{"type":46,"tag":108,"props":4041,"children":4042},{"class":110,"line":1348},[4043,4047,4051,4055,4059,4063],{"type":46,"tag":108,"props":4044,"children":4045},{"style":115},[4046],{"type":52,"value":3946},{"type":46,"tag":108,"props":4048,"children":4049},{"style":418},[4050],{"type":52,"value":1663},{"type":46,"tag":108,"props":4052,"children":4053},{"style":126},[4054],{"type":52,"value":2450},{"type":46,"tag":108,"props":4056,"children":4057},{"style":2462},[4058],{"type":52,"value":3959},{"type":46,"tag":108,"props":4060,"children":4061},{"style":436},[4062],{"type":52,"value":3929},{"type":46,"tag":108,"props":4064,"children":4065},{"style":126},[4066],{"type":52,"value":320},{"type":46,"tag":108,"props":4068,"children":4069},{"class":110,"line":1370},[4070],{"type":46,"tag":108,"props":4071,"children":4072},{"style":126},[4073],{"type":52,"value":2982},{"type":46,"tag":108,"props":4075,"children":4076},{"class":110,"line":1392},[4077],{"type":46,"tag":108,"props":4078,"children":4079},{"style":126},[4080],{"type":52,"value":842},{"type":46,"tag":394,"props":4082,"children":4084},{"id":4083},"step-3-create-the-adapter-class",[4085],{"type":52,"value":4086},"Step 3: Create the Adapter class",{"type":46,"tag":68,"props":4088,"children":4090},{"className":101,"code":4089,"language":14,"meta":77,"style":77},"class MyAdapter extends MyQueryable\u003CTClient> implements SqlDriverAdapter {\n  #transactionDepth = 0;\n\n  constructor(client: TClient) {\n    super(client);\n  }\n\n  async executeScript(script: string): Promise\u003Cvoid> {\n    \u002F\u002F For SQLite: split on ';' and run each statement\n    \u002F\u002F For Postgres: use multi-statement execution\n    try {\n      \u002F\u002F Implementation depends on driver capabilities\n    } catch (e) {\n      this.onError(e);\n    }\n  }\n\n  async startTransaction(\n    isolationLevel?: IsolationLevel,\n  ): Promise\u003CTransaction> {\n    \u002F\u002F Validate isolation level for your database\n    const validLevels = new Set\u003CIsolationLevel>([\n      \"READ UNCOMMITTED\",\n      \"READ COMMITTED\",\n      \"REPEATABLE READ\",\n      \"SERIALIZABLE\",\n    ]);\n\n    if (isolationLevel !== undefined && !validLevels.has(isolationLevel)) {\n      throw new DriverAdapterError({\n        kind: \"InvalidIsolationLevel\",\n        level: isolationLevel,\n      });\n    }\n\n    const options: TransactionOptions = { usePhantomQuery: false };\n\n    this.#transactionDepth += 1;\n    const depth = this.#transactionDepth;\n\n    try {\n      if (depth === 1) {\n        \u002F\u002F Issue BEGIN (with isolation level if specified)\n        const beginSql = isolationLevel\n          ? `BEGIN ISOLATION LEVEL ${isolationLevel}`\n          : \"BEGIN\";\n        await this.client.query(beginSql);\n      } else {\n        \u002F\u002F Nested: use savepoints\n        await this.client.query(`SAVEPOINT sp_${depth}`);\n      }\n    } catch (e) {\n      this.#transactionDepth -= 1;\n      this.onError(e);\n    }\n\n    const release = () => {\n      this.#transactionDepth -= 1;\n    };\n    return new MyTransaction(this.client, options, release);\n  }\n\n  getConnectionInfo(): ConnectionInfo {\n    return { supportsRelationJoins: true };\n  }\n\n  async dispose(): Promise\u003Cvoid> {\n    await this.client.close();\n  }\n}\n",[4091],{"type":46,"tag":75,"props":4092,"children":4093},{"__ignoreMap":77},[4094,4138,4158,4165,4196,4219,4226,4233,4285,4293,4301,4312,4320,4347,4374,4381,4388,4395,4411,4431,4459,4467,4511,4532,4552,4572,4592,4604,4611,4678,4702,4731,4752,4768,4775,4782,4827,4834,4859,4887,4894,4905,4939,4947,4969,5002,5028,5070,5087,5096,5155,5164,5192,5217,5245,5253,5261,5289,5313,5322,5375,5383,5391,5411,5441,5449,5457,5494,5528,5536],{"type":46,"tag":108,"props":4095,"children":4096},{"class":110,"line":111},[4097,4101,4106,4110,4114,4118,4122,4126,4130,4134],{"type":46,"tag":108,"props":4098,"children":4099},{"style":412},[4100],{"type":52,"value":2180},{"type":46,"tag":108,"props":4102,"children":4103},{"style":418},[4104],{"type":52,"value":4105}," MyAdapter",{"type":46,"tag":108,"props":4107,"children":4108},{"style":412},[4109],{"type":52,"value":1617},{"type":46,"tag":108,"props":4111,"children":4112},{"style":418},[4113],{"type":52,"value":2185},{"type":46,"tag":108,"props":4115,"children":4116},{"style":126},[4117],{"type":52,"value":481},{"type":46,"tag":108,"props":4119,"children":4120},{"style":418},[4121],{"type":52,"value":2194},{"type":46,"tag":108,"props":4123,"children":4124},{"style":126},[4125],{"type":52,"value":2199},{"type":46,"tag":108,"props":4127,"children":4128},{"style":412},[4129],{"type":52,"value":2204},{"type":46,"tag":108,"props":4131,"children":4132},{"style":418},[4133],{"type":52,"value":1612},{"type":46,"tag":108,"props":4135,"children":4136},{"style":126},[4137],{"type":52,"value":129},{"type":46,"tag":108,"props":4139,"children":4140},{"class":110,"line":132},[4141,4146,4150,4154],{"type":46,"tag":108,"props":4142,"children":4143},{"style":436},[4144],{"type":52,"value":4145},"  #transactionDepth",{"type":46,"tag":108,"props":4147,"children":4148},{"style":126},[4149],{"type":52,"value":426},{"type":46,"tag":108,"props":4151,"children":4152},{"style":892},[4153],{"type":52,"value":895},{"type":46,"tag":108,"props":4155,"children":4156},{"style":126},[4157],{"type":52,"value":320},{"type":46,"tag":108,"props":4159,"children":4160},{"class":110,"line":30},[4161],{"type":46,"tag":108,"props":4162,"children":4163},{"emptyLinePlaceholder":544},[4164],{"type":52,"value":547},{"type":46,"tag":108,"props":4166,"children":4167},{"class":110,"line":159},[4168,4172,4176,4180,4184,4188,4192],{"type":46,"tag":108,"props":4169,"children":4170},{"style":412},[4171],{"type":52,"value":2311},{"type":46,"tag":108,"props":4173,"children":4174},{"style":126},[4175],{"type":52,"value":1639},{"type":46,"tag":108,"props":4177,"children":4178},{"style":1642},[4179],{"type":52,"value":2668},{"type":46,"tag":108,"props":4181,"children":4182},{"style":126},[4183],{"type":52,"value":98},{"type":46,"tag":108,"props":4185,"children":4186},{"style":418},[4187],{"type":52,"value":2339},{"type":46,"tag":108,"props":4189,"children":4190},{"style":126},[4191],{"type":52,"value":2344},{"type":46,"tag":108,"props":4193,"children":4194},{"style":126},[4195],{"type":52,"value":129},{"type":46,"tag":108,"props":4197,"children":4198},{"class":110,"line":172},[4199,4203,4207,4211,4215],{"type":46,"tag":108,"props":4200,"children":4201},{"style":136},[4202],{"type":52,"value":3794},{"type":46,"tag":108,"props":4204,"children":4205},{"style":436},[4206],{"type":52,"value":1639},{"type":46,"tag":108,"props":4208,"children":4209},{"style":136},[4210],{"type":52,"value":2668},{"type":46,"tag":108,"props":4212,"children":4213},{"style":436},[4214],{"type":52,"value":2344},{"type":46,"tag":108,"props":4216,"children":4217},{"style":126},[4218],{"type":52,"value":320},{"type":46,"tag":108,"props":4220,"children":4221},{"class":110,"line":185},[4222],{"type":46,"tag":108,"props":4223,"children":4224},{"style":126},[4225],{"type":52,"value":2982},{"type":46,"tag":108,"props":4227,"children":4228},{"class":110,"line":198},[4229],{"type":46,"tag":108,"props":4230,"children":4231},{"emptyLinePlaceholder":544},[4232],{"type":52,"value":547},{"type":46,"tag":108,"props":4234,"children":4235},{"class":110,"line":211},[4236,4240,4245,4249,4253,4257,4261,4265,4269,4273,4277,4281],{"type":46,"tag":108,"props":4237,"children":4238},{"style":412},[4239],{"type":52,"value":2364},{"type":46,"tag":108,"props":4241,"children":4242},{"style":436},[4243],{"type":52,"value":4244}," executeScript",{"type":46,"tag":108,"props":4246,"children":4247},{"style":126},[4248],{"type":52,"value":1639},{"type":46,"tag":108,"props":4250,"children":4251},{"style":1642},[4252],{"type":52,"value":1645},{"type":46,"tag":108,"props":4254,"children":4255},{"style":126},[4256],{"type":52,"value":98},{"type":46,"tag":108,"props":4258,"children":4259},{"style":418},[4260],{"type":52,"value":448},{"type":46,"tag":108,"props":4262,"children":4263},{"style":126},[4264],{"type":52,"value":1658},{"type":46,"tag":108,"props":4266,"children":4267},{"style":418},[4268],{"type":52,"value":1663},{"type":46,"tag":108,"props":4270,"children":4271},{"style":126},[4272],{"type":52,"value":481},{"type":46,"tag":108,"props":4274,"children":4275},{"style":418},[4276],{"type":52,"value":1672},{"type":46,"tag":108,"props":4278,"children":4279},{"style":126},[4280],{"type":52,"value":2199},{"type":46,"tag":108,"props":4282,"children":4283},{"style":126},[4284],{"type":52,"value":129},{"type":46,"tag":108,"props":4286,"children":4287},{"class":110,"line":224},[4288],{"type":46,"tag":108,"props":4289,"children":4290},{"style":456},[4291],{"type":52,"value":4292},"    \u002F\u002F For SQLite: split on ';' and run each statement\n",{"type":46,"tag":108,"props":4294,"children":4295},{"class":110,"line":237},[4296],{"type":46,"tag":108,"props":4297,"children":4298},{"style":456},[4299],{"type":52,"value":4300},"    \u002F\u002F For Postgres: use multi-statement execution\n",{"type":46,"tag":108,"props":4302,"children":4303},{"class":110,"line":250},[4304,4308],{"type":46,"tag":108,"props":4305,"children":4306},{"style":115},[4307],{"type":52,"value":2419},{"type":46,"tag":108,"props":4309,"children":4310},{"style":126},[4311],{"type":52,"value":129},{"type":46,"tag":108,"props":4313,"children":4314},{"class":110,"line":263},[4315],{"type":46,"tag":108,"props":4316,"children":4317},{"style":456},[4318],{"type":52,"value":4319},"      \u002F\u002F Implementation depends on driver capabilities\n",{"type":46,"tag":108,"props":4321,"children":4322},{"class":110,"line":276},[4323,4327,4331,4335,4339,4343],{"type":46,"tag":108,"props":4324,"children":4325},{"style":126},[4326],{"type":52,"value":2912},{"type":46,"tag":108,"props":4328,"children":4329},{"style":115},[4330],{"type":52,"value":2917},{"type":46,"tag":108,"props":4332,"children":4333},{"style":436},[4334],{"type":52,"value":2922},{"type":46,"tag":108,"props":4336,"children":4337},{"style":136},[4338],{"type":52,"value":2927},{"type":46,"tag":108,"props":4340,"children":4341},{"style":436},[4342],{"type":52,"value":2932},{"type":46,"tag":108,"props":4344,"children":4345},{"style":126},[4346],{"type":52,"value":2937},{"type":46,"tag":108,"props":4348,"children":4349},{"class":110,"line":289},[4350,4354,4358,4362,4366,4370],{"type":46,"tag":108,"props":4351,"children":4352},{"style":126},[4353],{"type":52,"value":2945},{"type":46,"tag":108,"props":4355,"children":4356},{"style":2462},[4357],{"type":52,"value":2950},{"type":46,"tag":108,"props":4359,"children":4360},{"style":436},[4361],{"type":52,"value":1639},{"type":46,"tag":108,"props":4363,"children":4364},{"style":136},[4365],{"type":52,"value":2927},{"type":46,"tag":108,"props":4367,"children":4368},{"style":436},[4369],{"type":52,"value":2344},{"type":46,"tag":108,"props":4371,"children":4372},{"style":126},[4373],{"type":52,"value":320},{"type":46,"tag":108,"props":4375,"children":4376},{"class":110,"line":323},[4377],{"type":46,"tag":108,"props":4378,"children":4379},{"style":126},[4380],{"type":52,"value":2974},{"type":46,"tag":108,"props":4382,"children":4383},{"class":110,"line":335},[4384],{"type":46,"tag":108,"props":4385,"children":4386},{"style":126},[4387],{"type":52,"value":2982},{"type":46,"tag":108,"props":4389,"children":4390},{"class":110,"line":348},[4391],{"type":46,"tag":108,"props":4392,"children":4393},{"emptyLinePlaceholder":544},[4394],{"type":52,"value":547},{"type":46,"tag":108,"props":4396,"children":4397},{"class":110,"line":361},[4398,4402,4407],{"type":46,"tag":108,"props":4399,"children":4400},{"style":412},[4401],{"type":52,"value":2364},{"type":46,"tag":108,"props":4403,"children":4404},{"style":436},[4405],{"type":52,"value":4406}," startTransaction",{"type":46,"tag":108,"props":4408,"children":4409},{"style":126},[4410],{"type":52,"value":3706},{"type":46,"tag":108,"props":4412,"children":4413},{"class":110,"line":1238},[4414,4419,4423,4427],{"type":46,"tag":108,"props":4415,"children":4416},{"style":1642},[4417],{"type":52,"value":4418},"    isolationLevel",{"type":46,"tag":108,"props":4420,"children":4421},{"style":126},[4422],{"type":52,"value":606},{"type":46,"tag":108,"props":4424,"children":4425},{"style":418},[4426],{"type":52,"value":1703},{"type":46,"tag":108,"props":4428,"children":4429},{"style":126},[4430],{"type":52,"value":144},{"type":46,"tag":108,"props":4432,"children":4433},{"class":110,"line":1260},[4434,4439,4443,4447,4451,4455],{"type":46,"tag":108,"props":4435,"children":4436},{"style":126},[4437],{"type":52,"value":4438},"  ):",{"type":46,"tag":108,"props":4440,"children":4441},{"style":418},[4442],{"type":52,"value":1663},{"type":46,"tag":108,"props":4444,"children":4445},{"style":126},[4446],{"type":52,"value":481},{"type":46,"tag":108,"props":4448,"children":4449},{"style":418},[4450],{"type":52,"value":1720},{"type":46,"tag":108,"props":4452,"children":4453},{"style":126},[4454],{"type":52,"value":2199},{"type":46,"tag":108,"props":4456,"children":4457},{"style":126},[4458],{"type":52,"value":129},{"type":46,"tag":108,"props":4460,"children":4461},{"class":110,"line":1282},[4462],{"type":46,"tag":108,"props":4463,"children":4464},{"style":456},[4465],{"type":52,"value":4466},"    \u002F\u002F Validate isolation level for your database\n",{"type":46,"tag":108,"props":4468,"children":4469},{"class":110,"line":1304},[4470,4475,4480,4484,4488,4493,4497,4502,4506],{"type":46,"tag":108,"props":4471,"children":4472},{"style":412},[4473],{"type":52,"value":4474},"    const",{"type":46,"tag":108,"props":4476,"children":4477},{"style":136},[4478],{"type":52,"value":4479}," validLevels",{"type":46,"tag":108,"props":4481,"children":4482},{"style":126},[4483],{"type":52,"value":426},{"type":46,"tag":108,"props":4485,"children":4486},{"style":126},[4487],{"type":52,"value":3470},{"type":46,"tag":108,"props":4489,"children":4490},{"style":2462},[4491],{"type":52,"value":4492}," Set",{"type":46,"tag":108,"props":4494,"children":4495},{"style":126},[4496],{"type":52,"value":481},{"type":46,"tag":108,"props":4498,"children":4499},{"style":418},[4500],{"type":52,"value":4501},"IsolationLevel",{"type":46,"tag":108,"props":4503,"children":4504},{"style":126},[4505],{"type":52,"value":2199},{"type":46,"tag":108,"props":4507,"children":4508},{"style":436},[4509],{"type":52,"value":4510},"([\n",{"type":46,"tag":108,"props":4512,"children":4513},{"class":110,"line":1326},[4514,4519,4524,4528],{"type":46,"tag":108,"props":4515,"children":4516},{"style":126},[4517],{"type":52,"value":4518},"      \"",{"type":46,"tag":108,"props":4520,"children":4521},{"style":308},[4522],{"type":52,"value":4523},"READ UNCOMMITTED",{"type":46,"tag":108,"props":4525,"children":4526},{"style":126},[4527],{"type":52,"value":315},{"type":46,"tag":108,"props":4529,"children":4530},{"style":126},[4531],{"type":52,"value":144},{"type":46,"tag":108,"props":4533,"children":4534},{"class":110,"line":1348},[4535,4539,4544,4548],{"type":46,"tag":108,"props":4536,"children":4537},{"style":126},[4538],{"type":52,"value":4518},{"type":46,"tag":108,"props":4540,"children":4541},{"style":308},[4542],{"type":52,"value":4543},"READ COMMITTED",{"type":46,"tag":108,"props":4545,"children":4546},{"style":126},[4547],{"type":52,"value":315},{"type":46,"tag":108,"props":4549,"children":4550},{"style":126},[4551],{"type":52,"value":144},{"type":46,"tag":108,"props":4553,"children":4554},{"class":110,"line":1370},[4555,4559,4564,4568],{"type":46,"tag":108,"props":4556,"children":4557},{"style":126},[4558],{"type":52,"value":4518},{"type":46,"tag":108,"props":4560,"children":4561},{"style":308},[4562],{"type":52,"value":4563},"REPEATABLE READ",{"type":46,"tag":108,"props":4565,"children":4566},{"style":126},[4567],{"type":52,"value":315},{"type":46,"tag":108,"props":4569,"children":4570},{"style":126},[4571],{"type":52,"value":144},{"type":46,"tag":108,"props":4573,"children":4574},{"class":110,"line":1392},[4575,4579,4584,4588],{"type":46,"tag":108,"props":4576,"children":4577},{"style":126},[4578],{"type":52,"value":4518},{"type":46,"tag":108,"props":4580,"children":4581},{"style":308},[4582],{"type":52,"value":4583},"SERIALIZABLE",{"type":46,"tag":108,"props":4585,"children":4586},{"style":126},[4587],{"type":52,"value":315},{"type":46,"tag":108,"props":4589,"children":4590},{"style":126},[4591],{"type":52,"value":144},{"type":46,"tag":108,"props":4593,"children":4594},{"class":110,"line":1414},[4595,4600],{"type":46,"tag":108,"props":4596,"children":4597},{"style":436},[4598],{"type":52,"value":4599},"    ])",{"type":46,"tag":108,"props":4601,"children":4602},{"style":126},[4603],{"type":52,"value":320},{"type":46,"tag":108,"props":4605,"children":4606},{"class":110,"line":1436},[4607],{"type":46,"tag":108,"props":4608,"children":4609},{"emptyLinePlaceholder":544},[4610],{"type":52,"value":547},{"type":46,"tag":108,"props":4612,"children":4613},{"class":110,"line":1458},[4614,4619,4623,4627,4632,4637,4642,4647,4652,4656,4661,4665,4669,4674],{"type":46,"tag":108,"props":4615,"children":4616},{"style":115},[4617],{"type":52,"value":4618},"    if",{"type":46,"tag":108,"props":4620,"children":4621},{"style":436},[4622],{"type":52,"value":2922},{"type":46,"tag":108,"props":4624,"children":4625},{"style":136},[4626],{"type":52,"value":1694},{"type":46,"tag":108,"props":4628,"children":4629},{"style":126},[4630],{"type":52,"value":4631}," !==",{"type":46,"tag":108,"props":4633,"children":4634},{"style":126},[4635],{"type":52,"value":4636}," undefined",{"type":46,"tag":108,"props":4638,"children":4639},{"style":126},[4640],{"type":52,"value":4641}," &&",{"type":46,"tag":108,"props":4643,"children":4644},{"style":126},[4645],{"type":52,"value":4646}," !",{"type":46,"tag":108,"props":4648,"children":4649},{"style":136},[4650],{"type":52,"value":4651},"validLevels",{"type":46,"tag":108,"props":4653,"children":4654},{"style":126},[4655],{"type":52,"value":2450},{"type":46,"tag":108,"props":4657,"children":4658},{"style":2462},[4659],{"type":52,"value":4660},"has",{"type":46,"tag":108,"props":4662,"children":4663},{"style":436},[4664],{"type":52,"value":1639},{"type":46,"tag":108,"props":4666,"children":4667},{"style":136},[4668],{"type":52,"value":1694},{"type":46,"tag":108,"props":4670,"children":4671},{"style":436},[4672],{"type":52,"value":4673},")) ",{"type":46,"tag":108,"props":4675,"children":4676},{"style":126},[4677],{"type":52,"value":2937},{"type":46,"tag":108,"props":4679,"children":4680},{"class":110,"line":1480},[4681,4686,4690,4694,4698],{"type":46,"tag":108,"props":4682,"children":4683},{"style":115},[4684],{"type":52,"value":4685},"      throw",{"type":46,"tag":108,"props":4687,"children":4688},{"style":126},[4689],{"type":52,"value":3470},{"type":46,"tag":108,"props":4691,"children":4692},{"style":2462},[4693],{"type":52,"value":3475},{"type":46,"tag":108,"props":4695,"children":4696},{"style":436},[4697],{"type":52,"value":1639},{"type":46,"tag":108,"props":4699,"children":4700},{"style":126},[4701],{"type":52,"value":2937},{"type":46,"tag":108,"props":4703,"children":4704},{"class":110,"line":1502},[4705,4710,4714,4718,4723,4727],{"type":46,"tag":108,"props":4706,"children":4707},{"style":436},[4708],{"type":52,"value":4709},"        kind",{"type":46,"tag":108,"props":4711,"children":4712},{"style":126},[4713],{"type":52,"value":98},{"type":46,"tag":108,"props":4715,"children":4716},{"style":126},[4717],{"type":52,"value":305},{"type":46,"tag":108,"props":4719,"children":4720},{"style":308},[4721],{"type":52,"value":4722},"InvalidIsolationLevel",{"type":46,"tag":108,"props":4724,"children":4725},{"style":126},[4726],{"type":52,"value":315},{"type":46,"tag":108,"props":4728,"children":4729},{"style":126},[4730],{"type":52,"value":144},{"type":46,"tag":108,"props":4732,"children":4733},{"class":110,"line":1524},[4734,4739,4743,4748],{"type":46,"tag":108,"props":4735,"children":4736},{"style":436},[4737],{"type":52,"value":4738},"        level",{"type":46,"tag":108,"props":4740,"children":4741},{"style":126},[4742],{"type":52,"value":98},{"type":46,"tag":108,"props":4744,"children":4745},{"style":136},[4746],{"type":52,"value":4747}," isolationLevel",{"type":46,"tag":108,"props":4749,"children":4750},{"style":126},[4751],{"type":52,"value":144},{"type":46,"tag":108,"props":4753,"children":4754},{"class":110,"line":1546},[4755,4760,4764],{"type":46,"tag":108,"props":4756,"children":4757},{"style":126},[4758],{"type":52,"value":4759},"      }",{"type":46,"tag":108,"props":4761,"children":4762},{"style":436},[4763],{"type":52,"value":2344},{"type":46,"tag":108,"props":4765,"children":4766},{"style":126},[4767],{"type":52,"value":320},{"type":46,"tag":108,"props":4769,"children":4770},{"class":110,"line":1568},[4771],{"type":46,"tag":108,"props":4772,"children":4773},{"style":126},[4774],{"type":52,"value":2974},{"type":46,"tag":108,"props":4776,"children":4777},{"class":110,"line":3300},[4778],{"type":46,"tag":108,"props":4779,"children":4780},{"emptyLinePlaceholder":544},[4781],{"type":52,"value":547},{"type":46,"tag":108,"props":4783,"children":4784},{"class":110,"line":3334},[4785,4789,4793,4797,4801,4805,4809,4813,4817,4823],{"type":46,"tag":108,"props":4786,"children":4787},{"style":412},[4788],{"type":52,"value":4474},{"type":46,"tag":108,"props":4790,"children":4791},{"style":136},[4792],{"type":52,"value":1831},{"type":46,"tag":108,"props":4794,"children":4795},{"style":126},[4796],{"type":52,"value":98},{"type":46,"tag":108,"props":4798,"children":4799},{"style":418},[4800],{"type":52,"value":1840},{"type":46,"tag":108,"props":4802,"children":4803},{"style":126},[4804],{"type":52,"value":426},{"type":46,"tag":108,"props":4806,"children":4807},{"style":126},[4808],{"type":52,"value":1934},{"type":46,"tag":108,"props":4810,"children":4811},{"style":436},[4812],{"type":52,"value":1939},{"type":46,"tag":108,"props":4814,"children":4815},{"style":126},[4816],{"type":52,"value":98},{"type":46,"tag":108,"props":4818,"children":4820},{"style":4819},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[4821],{"type":52,"value":4822}," false",{"type":46,"tag":108,"props":4824,"children":4825},{"style":126},[4826],{"type":52,"value":1953},{"type":46,"tag":108,"props":4828,"children":4829},{"class":110,"line":3362},[4830],{"type":46,"tag":108,"props":4831,"children":4832},{"emptyLinePlaceholder":544},[4833],{"type":52,"value":547},{"type":46,"tag":108,"props":4835,"children":4836},{"class":110,"line":3390},[4837,4841,4846,4851,4855],{"type":46,"tag":108,"props":4838,"children":4839},{"style":126},[4840],{"type":52,"value":3818},{"type":46,"tag":108,"props":4842,"children":4843},{"style":136},[4844],{"type":52,"value":4845},"#transactionDepth",{"type":46,"tag":108,"props":4847,"children":4848},{"style":126},[4849],{"type":52,"value":4850}," +=",{"type":46,"tag":108,"props":4852,"children":4853},{"style":892},[4854],{"type":52,"value":916},{"type":46,"tag":108,"props":4856,"children":4857},{"style":126},[4858],{"type":52,"value":320},{"type":46,"tag":108,"props":4860,"children":4861},{"class":110,"line":3398},[4862,4866,4871,4875,4879,4883],{"type":46,"tag":108,"props":4863,"children":4864},{"style":412},[4865],{"type":52,"value":4474},{"type":46,"tag":108,"props":4867,"children":4868},{"style":136},[4869],{"type":52,"value":4870}," depth",{"type":46,"tag":108,"props":4872,"children":4873},{"style":126},[4874],{"type":52,"value":426},{"type":46,"tag":108,"props":4876,"children":4877},{"style":126},[4878],{"type":52,"value":2663},{"type":46,"tag":108,"props":4880,"children":4881},{"style":136},[4882],{"type":52,"value":4845},{"type":46,"tag":108,"props":4884,"children":4885},{"style":126},[4886],{"type":52,"value":320},{"type":46,"tag":108,"props":4888,"children":4889},{"class":110,"line":3406},[4890],{"type":46,"tag":108,"props":4891,"children":4892},{"emptyLinePlaceholder":544},[4893],{"type":52,"value":547},{"type":46,"tag":108,"props":4895,"children":4896},{"class":110,"line":3414},[4897,4901],{"type":46,"tag":108,"props":4898,"children":4899},{"style":115},[4900],{"type":52,"value":2419},{"type":46,"tag":108,"props":4902,"children":4903},{"style":126},[4904],{"type":52,"value":129},{"type":46,"tag":108,"props":4906,"children":4907},{"class":110,"line":3459},[4908,4913,4917,4922,4927,4931,4935],{"type":46,"tag":108,"props":4909,"children":4910},{"style":115},[4911],{"type":52,"value":4912},"      if",{"type":46,"tag":108,"props":4914,"children":4915},{"style":436},[4916],{"type":52,"value":2922},{"type":46,"tag":108,"props":4918,"children":4919},{"style":136},[4920],{"type":52,"value":4921},"depth",{"type":46,"tag":108,"props":4923,"children":4924},{"style":126},[4925],{"type":52,"value":4926}," ===",{"type":46,"tag":108,"props":4928,"children":4929},{"style":892},[4930],{"type":52,"value":916},{"type":46,"tag":108,"props":4932,"children":4933},{"style":436},[4934],{"type":52,"value":2932},{"type":46,"tag":108,"props":4936,"children":4937},{"style":126},[4938],{"type":52,"value":2937},{"type":46,"tag":108,"props":4940,"children":4941},{"class":110,"line":3503},[4942],{"type":46,"tag":108,"props":4943,"children":4944},{"style":456},[4945],{"type":52,"value":4946},"        \u002F\u002F Issue BEGIN (with isolation level if specified)\n",{"type":46,"tag":108,"props":4948,"children":4949},{"class":110,"line":26},[4950,4955,4960,4964],{"type":46,"tag":108,"props":4951,"children":4952},{"style":412},[4953],{"type":52,"value":4954},"        const",{"type":46,"tag":108,"props":4956,"children":4957},{"style":136},[4958],{"type":52,"value":4959}," beginSql",{"type":46,"tag":108,"props":4961,"children":4962},{"style":126},[4963],{"type":52,"value":426},{"type":46,"tag":108,"props":4965,"children":4966},{"style":136},[4967],{"type":52,"value":4968}," isolationLevel\n",{"type":46,"tag":108,"props":4970,"children":4972},{"class":110,"line":4971},45,[4973,4978,4983,4988,4993,4997],{"type":46,"tag":108,"props":4974,"children":4975},{"style":126},[4976],{"type":52,"value":4977},"          ?",{"type":46,"tag":108,"props":4979,"children":4980},{"style":126},[4981],{"type":52,"value":4982}," `",{"type":46,"tag":108,"props":4984,"children":4985},{"style":308},[4986],{"type":52,"value":4987},"BEGIN ISOLATION LEVEL ",{"type":46,"tag":108,"props":4989,"children":4990},{"style":126},[4991],{"type":52,"value":4992},"${",{"type":46,"tag":108,"props":4994,"children":4995},{"style":136},[4996],{"type":52,"value":1694},{"type":46,"tag":108,"props":4998,"children":4999},{"style":126},[5000],{"type":52,"value":5001},"}`\n",{"type":46,"tag":108,"props":5003,"children":5005},{"class":110,"line":5004},46,[5006,5011,5015,5020,5024],{"type":46,"tag":108,"props":5007,"children":5008},{"style":126},[5009],{"type":52,"value":5010},"          :",{"type":46,"tag":108,"props":5012,"children":5013},{"style":126},[5014],{"type":52,"value":305},{"type":46,"tag":108,"props":5016,"children":5017},{"style":308},[5018],{"type":52,"value":5019},"BEGIN",{"type":46,"tag":108,"props":5021,"children":5022},{"style":126},[5023],{"type":52,"value":315},{"type":46,"tag":108,"props":5025,"children":5026},{"style":126},[5027],{"type":52,"value":320},{"type":46,"tag":108,"props":5029,"children":5031},{"class":110,"line":5030},47,[5032,5037,5041,5045,5049,5053,5057,5062,5066],{"type":46,"tag":108,"props":5033,"children":5034},{"style":115},[5035],{"type":52,"value":5036},"        await",{"type":46,"tag":108,"props":5038,"children":5039},{"style":126},[5040],{"type":52,"value":2663},{"type":46,"tag":108,"props":5042,"children":5043},{"style":136},[5044],{"type":52,"value":2668},{"type":46,"tag":108,"props":5046,"children":5047},{"style":126},[5048],{"type":52,"value":2450},{"type":46,"tag":108,"props":5050,"children":5051},{"style":2462},[5052],{"type":52,"value":2378},{"type":46,"tag":108,"props":5054,"children":5055},{"style":436},[5056],{"type":52,"value":1639},{"type":46,"tag":108,"props":5058,"children":5059},{"style":136},[5060],{"type":52,"value":5061},"beginSql",{"type":46,"tag":108,"props":5063,"children":5064},{"style":436},[5065],{"type":52,"value":2344},{"type":46,"tag":108,"props":5067,"children":5068},{"style":126},[5069],{"type":52,"value":320},{"type":46,"tag":108,"props":5071,"children":5073},{"class":110,"line":5072},48,[5074,5078,5083],{"type":46,"tag":108,"props":5075,"children":5076},{"style":126},[5077],{"type":52,"value":4759},{"type":46,"tag":108,"props":5079,"children":5080},{"style":115},[5081],{"type":52,"value":5082}," else",{"type":46,"tag":108,"props":5084,"children":5085},{"style":126},[5086],{"type":52,"value":129},{"type":46,"tag":108,"props":5088,"children":5090},{"class":110,"line":5089},49,[5091],{"type":46,"tag":108,"props":5092,"children":5093},{"style":456},[5094],{"type":52,"value":5095},"        \u002F\u002F Nested: use savepoints\n",{"type":46,"tag":108,"props":5097,"children":5099},{"class":110,"line":5098},50,[5100,5104,5108,5112,5116,5120,5124,5129,5134,5138,5142,5147,5151],{"type":46,"tag":108,"props":5101,"children":5102},{"style":115},[5103],{"type":52,"value":5036},{"type":46,"tag":108,"props":5105,"children":5106},{"style":126},[5107],{"type":52,"value":2663},{"type":46,"tag":108,"props":5109,"children":5110},{"style":136},[5111],{"type":52,"value":2668},{"type":46,"tag":108,"props":5113,"children":5114},{"style":126},[5115],{"type":52,"value":2450},{"type":46,"tag":108,"props":5117,"children":5118},{"style":2462},[5119],{"type":52,"value":2378},{"type":46,"tag":108,"props":5121,"children":5122},{"style":436},[5123],{"type":52,"value":1639},{"type":46,"tag":108,"props":5125,"children":5126},{"style":126},[5127],{"type":52,"value":5128},"`",{"type":46,"tag":108,"props":5130,"children":5131},{"style":308},[5132],{"type":52,"value":5133},"SAVEPOINT sp_",{"type":46,"tag":108,"props":5135,"children":5136},{"style":126},[5137],{"type":52,"value":4992},{"type":46,"tag":108,"props":5139,"children":5140},{"style":136},[5141],{"type":52,"value":4921},{"type":46,"tag":108,"props":5143,"children":5144},{"style":126},[5145],{"type":52,"value":5146},"}`",{"type":46,"tag":108,"props":5148,"children":5149},{"style":436},[5150],{"type":52,"value":2344},{"type":46,"tag":108,"props":5152,"children":5153},{"style":126},[5154],{"type":52,"value":320},{"type":46,"tag":108,"props":5156,"children":5158},{"class":110,"line":5157},51,[5159],{"type":46,"tag":108,"props":5160,"children":5161},{"style":126},[5162],{"type":52,"value":5163},"      }\n",{"type":46,"tag":108,"props":5165,"children":5167},{"class":110,"line":5166},52,[5168,5172,5176,5180,5184,5188],{"type":46,"tag":108,"props":5169,"children":5170},{"style":126},[5171],{"type":52,"value":2912},{"type":46,"tag":108,"props":5173,"children":5174},{"style":115},[5175],{"type":52,"value":2917},{"type":46,"tag":108,"props":5177,"children":5178},{"style":436},[5179],{"type":52,"value":2922},{"type":46,"tag":108,"props":5181,"children":5182},{"style":136},[5183],{"type":52,"value":2927},{"type":46,"tag":108,"props":5185,"children":5186},{"style":436},[5187],{"type":52,"value":2932},{"type":46,"tag":108,"props":5189,"children":5190},{"style":126},[5191],{"type":52,"value":2937},{"type":46,"tag":108,"props":5193,"children":5195},{"class":110,"line":5194},53,[5196,5200,5204,5209,5213],{"type":46,"tag":108,"props":5197,"children":5198},{"style":126},[5199],{"type":52,"value":2945},{"type":46,"tag":108,"props":5201,"children":5202},{"style":136},[5203],{"type":52,"value":4845},{"type":46,"tag":108,"props":5205,"children":5206},{"style":126},[5207],{"type":52,"value":5208}," -=",{"type":46,"tag":108,"props":5210,"children":5211},{"style":892},[5212],{"type":52,"value":916},{"type":46,"tag":108,"props":5214,"children":5215},{"style":126},[5216],{"type":52,"value":320},{"type":46,"tag":108,"props":5218,"children":5220},{"class":110,"line":5219},54,[5221,5225,5229,5233,5237,5241],{"type":46,"tag":108,"props":5222,"children":5223},{"style":126},[5224],{"type":52,"value":2945},{"type":46,"tag":108,"props":5226,"children":5227},{"style":2462},[5228],{"type":52,"value":2950},{"type":46,"tag":108,"props":5230,"children":5231},{"style":436},[5232],{"type":52,"value":1639},{"type":46,"tag":108,"props":5234,"children":5235},{"style":136},[5236],{"type":52,"value":2927},{"type":46,"tag":108,"props":5238,"children":5239},{"style":436},[5240],{"type":52,"value":2344},{"type":46,"tag":108,"props":5242,"children":5243},{"style":126},[5244],{"type":52,"value":320},{"type":46,"tag":108,"props":5246,"children":5248},{"class":110,"line":5247},55,[5249],{"type":46,"tag":108,"props":5250,"children":5251},{"style":126},[5252],{"type":52,"value":2974},{"type":46,"tag":108,"props":5254,"children":5256},{"class":110,"line":5255},56,[5257],{"type":46,"tag":108,"props":5258,"children":5259},{"emptyLinePlaceholder":544},[5260],{"type":52,"value":547},{"type":46,"tag":108,"props":5262,"children":5264},{"class":110,"line":5263},57,[5265,5269,5273,5277,5281,5285],{"type":46,"tag":108,"props":5266,"children":5267},{"style":412},[5268],{"type":52,"value":4474},{"type":46,"tag":108,"props":5270,"children":5271},{"style":136},[5272],{"type":52,"value":3856},{"type":46,"tag":108,"props":5274,"children":5275},{"style":126},[5276],{"type":52,"value":426},{"type":46,"tag":108,"props":5278,"children":5279},{"style":126},[5280],{"type":52,"value":3674},{"type":46,"tag":108,"props":5282,"children":5283},{"style":412},[5284],{"type":52,"value":2831},{"type":46,"tag":108,"props":5286,"children":5287},{"style":126},[5288],{"type":52,"value":129},{"type":46,"tag":108,"props":5290,"children":5292},{"class":110,"line":5291},58,[5293,5297,5301,5305,5309],{"type":46,"tag":108,"props":5294,"children":5295},{"style":126},[5296],{"type":52,"value":2945},{"type":46,"tag":108,"props":5298,"children":5299},{"style":136},[5300],{"type":52,"value":4845},{"type":46,"tag":108,"props":5302,"children":5303},{"style":126},[5304],{"type":52,"value":5208},{"type":46,"tag":108,"props":5306,"children":5307},{"style":892},[5308],{"type":52,"value":916},{"type":46,"tag":108,"props":5310,"children":5311},{"style":126},[5312],{"type":52,"value":320},{"type":46,"tag":108,"props":5314,"children":5316},{"class":110,"line":5315},59,[5317],{"type":46,"tag":108,"props":5318,"children":5319},{"style":126},[5320],{"type":52,"value":5321},"    };\n",{"type":46,"tag":108,"props":5323,"children":5325},{"class":110,"line":5324},60,[5326,5330,5334,5338,5342,5347,5351,5355,5359,5363,5367,5371],{"type":46,"tag":108,"props":5327,"children":5328},{"style":115},[5329],{"type":52,"value":3946},{"type":46,"tag":108,"props":5331,"children":5332},{"style":126},[5333],{"type":52,"value":3470},{"type":46,"tag":108,"props":5335,"children":5336},{"style":2462},[5337],{"type":52,"value":3598},{"type":46,"tag":108,"props":5339,"children":5340},{"style":436},[5341],{"type":52,"value":1639},{"type":46,"tag":108,"props":5343,"children":5344},{"style":126},[5345],{"type":52,"value":5346},"this.",{"type":46,"tag":108,"props":5348,"children":5349},{"style":136},[5350],{"type":52,"value":2668},{"type":46,"tag":108,"props":5352,"children":5353},{"style":126},[5354],{"type":52,"value":2483},{"type":46,"tag":108,"props":5356,"children":5357},{"style":136},[5358],{"type":52,"value":1831},{"type":46,"tag":108,"props":5360,"children":5361},{"style":126},[5362],{"type":52,"value":2483},{"type":46,"tag":108,"props":5364,"children":5365},{"style":136},[5366],{"type":52,"value":3856},{"type":46,"tag":108,"props":5368,"children":5369},{"style":436},[5370],{"type":52,"value":2344},{"type":46,"tag":108,"props":5372,"children":5373},{"style":126},[5374],{"type":52,"value":320},{"type":46,"tag":108,"props":5376,"children":5378},{"class":110,"line":5377},61,[5379],{"type":46,"tag":108,"props":5380,"children":5381},{"style":126},[5382],{"type":52,"value":2982},{"type":46,"tag":108,"props":5384,"children":5386},{"class":110,"line":5385},62,[5387],{"type":46,"tag":108,"props":5388,"children":5389},{"emptyLinePlaceholder":544},[5390],{"type":52,"value":547},{"type":46,"tag":108,"props":5392,"children":5394},{"class":110,"line":5393},63,[5395,5399,5403,5407],{"type":46,"tag":108,"props":5396,"children":5397},{"style":436},[5398],{"type":52,"value":1732},{"type":46,"tag":108,"props":5400,"children":5401},{"style":126},[5402],{"type":52,"value":1759},{"type":46,"tag":108,"props":5404,"children":5405},{"style":418},[5406],{"type":52,"value":1742},{"type":46,"tag":108,"props":5408,"children":5409},{"style":126},[5410],{"type":52,"value":129},{"type":46,"tag":108,"props":5412,"children":5414},{"class":110,"line":5413},64,[5415,5419,5423,5428,5432,5437],{"type":46,"tag":108,"props":5416,"children":5417},{"style":115},[5418],{"type":52,"value":3946},{"type":46,"tag":108,"props":5420,"children":5421},{"style":126},[5422],{"type":52,"value":1934},{"type":46,"tag":108,"props":5424,"children":5425},{"style":436},[5426],{"type":52,"value":5427}," supportsRelationJoins",{"type":46,"tag":108,"props":5429,"children":5430},{"style":126},[5431],{"type":52,"value":98},{"type":46,"tag":108,"props":5433,"children":5434},{"style":4819},[5435],{"type":52,"value":5436}," true",{"type":46,"tag":108,"props":5438,"children":5439},{"style":126},[5440],{"type":52,"value":1953},{"type":46,"tag":108,"props":5442,"children":5444},{"class":110,"line":5443},65,[5445],{"type":46,"tag":108,"props":5446,"children":5447},{"style":126},[5448],{"type":52,"value":2982},{"type":46,"tag":108,"props":5450,"children":5452},{"class":110,"line":5451},66,[5453],{"type":46,"tag":108,"props":5454,"children":5455},{"emptyLinePlaceholder":544},[5456],{"type":52,"value":547},{"type":46,"tag":108,"props":5458,"children":5460},{"class":110,"line":5459},67,[5461,5465,5470,5474,5478,5482,5486,5490],{"type":46,"tag":108,"props":5462,"children":5463},{"style":412},[5464],{"type":52,"value":2364},{"type":46,"tag":108,"props":5466,"children":5467},{"style":436},[5468],{"type":52,"value":5469}," dispose",{"type":46,"tag":108,"props":5471,"children":5472},{"style":126},[5473],{"type":52,"value":1759},{"type":46,"tag":108,"props":5475,"children":5476},{"style":418},[5477],{"type":52,"value":1663},{"type":46,"tag":108,"props":5479,"children":5480},{"style":126},[5481],{"type":52,"value":481},{"type":46,"tag":108,"props":5483,"children":5484},{"style":418},[5485],{"type":52,"value":1672},{"type":46,"tag":108,"props":5487,"children":5488},{"style":126},[5489],{"type":52,"value":2199},{"type":46,"tag":108,"props":5491,"children":5492},{"style":126},[5493],{"type":52,"value":129},{"type":46,"tag":108,"props":5495,"children":5497},{"class":110,"line":5496},68,[5498,5503,5507,5511,5515,5520,5524],{"type":46,"tag":108,"props":5499,"children":5500},{"style":115},[5501],{"type":52,"value":5502},"    await",{"type":46,"tag":108,"props":5504,"children":5505},{"style":126},[5506],{"type":52,"value":2663},{"type":46,"tag":108,"props":5508,"children":5509},{"style":136},[5510],{"type":52,"value":2668},{"type":46,"tag":108,"props":5512,"children":5513},{"style":126},[5514],{"type":52,"value":2450},{"type":46,"tag":108,"props":5516,"children":5517},{"style":2462},[5518],{"type":52,"value":5519},"close",{"type":46,"tag":108,"props":5521,"children":5522},{"style":436},[5523],{"type":52,"value":3929},{"type":46,"tag":108,"props":5525,"children":5526},{"style":126},[5527],{"type":52,"value":320},{"type":46,"tag":108,"props":5529,"children":5531},{"class":110,"line":5530},69,[5532],{"type":46,"tag":108,"props":5533,"children":5534},{"style":126},[5535],{"type":52,"value":2982},{"type":46,"tag":108,"props":5537,"children":5539},{"class":110,"line":5538},70,[5540],{"type":46,"tag":108,"props":5541,"children":5542},{"style":126},[5543],{"type":52,"value":842},{"type":46,"tag":394,"props":5545,"children":5547},{"id":5546},"step-4-create-the-factory-class",[5548],{"type":52,"value":5549},"Step 4: Create the Factory class",{"type":46,"tag":68,"props":5551,"children":5553},{"className":101,"code":5552,"language":14,"meta":77,"style":77},"export type MyAdapterConfig = {\n  url: string;\n};\n\nexport type MyAdapterOptions = {\n  shadowDatabaseUrl?: string;\n};\n\nexport class MyAdapterFactory implements SqlMigrationAwareDriverAdapterFactory {\n  readonly provider = \"postgres\" as const;\n  readonly adapterName = \"@my-org\u002Fadapter-mydb\" as const;\n\n  constructor(\n    private readonly config: MyAdapterConfig,\n    private readonly options?: MyAdapterOptions,\n  ) {}\n\n  connect(): Promise\u003CSqlDriverAdapter> {\n    return Promise.resolve(new MyAdapter(openConnection(this.config.url)));\n  }\n\n  connectToShadowDb(): Promise\u003CSqlDriverAdapter> {\n    const url = this.options?.shadowDatabaseUrl ?? this.config.url;\n    return Promise.resolve(new MyAdapter(openConnection(url)));\n  }\n}\n",[5554],{"type":46,"tag":75,"props":5555,"children":5556},{"__ignoreMap":77},[5557,5582,5602,5609,5616,5640,5660,5667,5674,5703,5742,5781,5788,5799,5828,5855,5866,5873,5904,5976,5983,5990,6021,6079,6134,6141],{"type":46,"tag":108,"props":5558,"children":5559},{"class":110,"line":111},[5560,5565,5569,5574,5578],{"type":46,"tag":108,"props":5561,"children":5562},{"style":115},[5563],{"type":52,"value":5564},"export",{"type":46,"tag":108,"props":5566,"children":5567},{"style":412},[5568],{"type":52,"value":123},{"type":46,"tag":108,"props":5570,"children":5571},{"style":418},[5572],{"type":52,"value":5573}," MyAdapterConfig",{"type":46,"tag":108,"props":5575,"children":5576},{"style":126},[5577],{"type":52,"value":426},{"type":46,"tag":108,"props":5579,"children":5580},{"style":126},[5581],{"type":52,"value":129},{"type":46,"tag":108,"props":5583,"children":5584},{"class":110,"line":132},[5585,5590,5594,5598],{"type":46,"tag":108,"props":5586,"children":5587},{"style":436},[5588],{"type":52,"value":5589},"  url",{"type":46,"tag":108,"props":5591,"children":5592},{"style":126},[5593],{"type":52,"value":98},{"type":46,"tag":108,"props":5595,"children":5596},{"style":418},[5597],{"type":52,"value":448},{"type":46,"tag":108,"props":5599,"children":5600},{"style":126},[5601],{"type":52,"value":320},{"type":46,"tag":108,"props":5603,"children":5604},{"class":110,"line":30},[5605],{"type":46,"tag":108,"props":5606,"children":5607},{"style":126},[5608],{"type":52,"value":538},{"type":46,"tag":108,"props":5610,"children":5611},{"class":110,"line":159},[5612],{"type":46,"tag":108,"props":5613,"children":5614},{"emptyLinePlaceholder":544},[5615],{"type":52,"value":547},{"type":46,"tag":108,"props":5617,"children":5618},{"class":110,"line":172},[5619,5623,5627,5632,5636],{"type":46,"tag":108,"props":5620,"children":5621},{"style":115},[5622],{"type":52,"value":5564},{"type":46,"tag":108,"props":5624,"children":5625},{"style":412},[5626],{"type":52,"value":123},{"type":46,"tag":108,"props":5628,"children":5629},{"style":418},[5630],{"type":52,"value":5631}," MyAdapterOptions",{"type":46,"tag":108,"props":5633,"children":5634},{"style":126},[5635],{"type":52,"value":426},{"type":46,"tag":108,"props":5637,"children":5638},{"style":126},[5639],{"type":52,"value":129},{"type":46,"tag":108,"props":5641,"children":5642},{"class":110,"line":185},[5643,5648,5652,5656],{"type":46,"tag":108,"props":5644,"children":5645},{"style":436},[5646],{"type":52,"value":5647},"  shadowDatabaseUrl",{"type":46,"tag":108,"props":5649,"children":5650},{"style":126},[5651],{"type":52,"value":606},{"type":46,"tag":108,"props":5653,"children":5654},{"style":418},[5655],{"type":52,"value":448},{"type":46,"tag":108,"props":5657,"children":5658},{"style":126},[5659],{"type":52,"value":320},{"type":46,"tag":108,"props":5661,"children":5662},{"class":110,"line":198},[5663],{"type":46,"tag":108,"props":5664,"children":5665},{"style":126},[5666],{"type":52,"value":538},{"type":46,"tag":108,"props":5668,"children":5669},{"class":110,"line":211},[5670],{"type":46,"tag":108,"props":5671,"children":5672},{"emptyLinePlaceholder":544},[5673],{"type":52,"value":547},{"type":46,"tag":108,"props":5675,"children":5676},{"class":110,"line":224},[5677,5681,5686,5691,5695,5699],{"type":46,"tag":108,"props":5678,"children":5679},{"style":115},[5680],{"type":52,"value":5564},{"type":46,"tag":108,"props":5682,"children":5683},{"style":412},[5684],{"type":52,"value":5685}," class",{"type":46,"tag":108,"props":5687,"children":5688},{"style":418},[5689],{"type":52,"value":5690}," MyAdapterFactory",{"type":46,"tag":108,"props":5692,"children":5693},{"style":412},[5694],{"type":52,"value":2204},{"type":46,"tag":108,"props":5696,"children":5697},{"style":418},[5698],{"type":52,"value":1978},{"type":46,"tag":108,"props":5700,"children":5701},{"style":126},[5702],{"type":52,"value":129},{"type":46,"tag":108,"props":5704,"children":5705},{"class":110,"line":237},[5706,5710,5714,5718,5722,5726,5730,5734,5738],{"type":46,"tag":108,"props":5707,"children":5708},{"style":412},[5709],{"type":52,"value":1826},{"type":46,"tag":108,"props":5711,"children":5712},{"style":436},[5713],{"type":52,"value":1994},{"type":46,"tag":108,"props":5715,"children":5716},{"style":126},[5717],{"type":52,"value":426},{"type":46,"tag":108,"props":5719,"children":5720},{"style":126},[5721],{"type":52,"value":305},{"type":46,"tag":108,"props":5723,"children":5724},{"style":308},[5725],{"type":52,"value":2024},{"type":46,"tag":108,"props":5727,"children":5728},{"style":126},[5729],{"type":52,"value":315},{"type":46,"tag":108,"props":5731,"children":5732},{"style":115},[5733],{"type":52,"value":1578},{"type":46,"tag":108,"props":5735,"children":5736},{"style":412},[5737],{"type":52,"value":1583},{"type":46,"tag":108,"props":5739,"children":5740},{"style":126},[5741],{"type":52,"value":320},{"type":46,"tag":108,"props":5743,"children":5744},{"class":110,"line":250},[5745,5749,5753,5757,5761,5765,5769,5773,5777],{"type":46,"tag":108,"props":5746,"children":5747},{"style":412},[5748],{"type":52,"value":1826},{"type":46,"tag":108,"props":5750,"children":5751},{"style":436},[5752],{"type":52,"value":2078},{"type":46,"tag":108,"props":5754,"children":5755},{"style":126},[5756],{"type":52,"value":426},{"type":46,"tag":108,"props":5758,"children":5759},{"style":126},[5760],{"type":52,"value":305},{"type":46,"tag":108,"props":5762,"children":5763},{"style":308},[5764],{"type":52,"value":2280},{"type":46,"tag":108,"props":5766,"children":5767},{"style":126},[5768],{"type":52,"value":315},{"type":46,"tag":108,"props":5770,"children":5771},{"style":115},[5772],{"type":52,"value":1578},{"type":46,"tag":108,"props":5774,"children":5775},{"style":412},[5776],{"type":52,"value":1583},{"type":46,"tag":108,"props":5778,"children":5779},{"style":126},[5780],{"type":52,"value":320},{"type":46,"tag":108,"props":5782,"children":5783},{"class":110,"line":263},[5784],{"type":46,"tag":108,"props":5785,"children":5786},{"emptyLinePlaceholder":544},[5787],{"type":52,"value":547},{"type":46,"tag":108,"props":5789,"children":5790},{"class":110,"line":276},[5791,5795],{"type":46,"tag":108,"props":5792,"children":5793},{"style":412},[5794],{"type":52,"value":2311},{"type":46,"tag":108,"props":5796,"children":5797},{"style":126},[5798],{"type":52,"value":3706},{"type":46,"tag":108,"props":5800,"children":5801},{"class":110,"line":289},[5802,5807,5811,5816,5820,5824],{"type":46,"tag":108,"props":5803,"children":5804},{"style":412},[5805],{"type":52,"value":5806},"    private",{"type":46,"tag":108,"props":5808,"children":5809},{"style":412},[5810],{"type":52,"value":2325},{"type":46,"tag":108,"props":5812,"children":5813},{"style":1642},[5814],{"type":52,"value":5815}," config",{"type":46,"tag":108,"props":5817,"children":5818},{"style":126},[5819],{"type":52,"value":98},{"type":46,"tag":108,"props":5821,"children":5822},{"style":418},[5823],{"type":52,"value":5573},{"type":46,"tag":108,"props":5825,"children":5826},{"style":126},[5827],{"type":52,"value":144},{"type":46,"tag":108,"props":5829,"children":5830},{"class":110,"line":323},[5831,5835,5839,5843,5847,5851],{"type":46,"tag":108,"props":5832,"children":5833},{"style":412},[5834],{"type":52,"value":5806},{"type":46,"tag":108,"props":5836,"children":5837},{"style":412},[5838],{"type":52,"value":2325},{"type":46,"tag":108,"props":5840,"children":5841},{"style":1642},[5842],{"type":52,"value":1831},{"type":46,"tag":108,"props":5844,"children":5845},{"style":126},[5846],{"type":52,"value":606},{"type":46,"tag":108,"props":5848,"children":5849},{"style":418},[5850],{"type":52,"value":5631},{"type":46,"tag":108,"props":5852,"children":5853},{"style":126},[5854],{"type":52,"value":144},{"type":46,"tag":108,"props":5856,"children":5857},{"class":110,"line":335},[5858,5862],{"type":46,"tag":108,"props":5859,"children":5860},{"style":126},[5861],{"type":52,"value":3782},{"type":46,"tag":108,"props":5863,"children":5864},{"style":126},[5865],{"type":52,"value":2349},{"type":46,"tag":108,"props":5867,"children":5868},{"class":110,"line":348},[5869],{"type":46,"tag":108,"props":5870,"children":5871},{"emptyLinePlaceholder":544},[5872],{"type":52,"value":547},{"type":46,"tag":108,"props":5874,"children":5875},{"class":110,"line":361},[5876,5880,5884,5888,5892,5896,5900],{"type":46,"tag":108,"props":5877,"children":5878},{"style":436},[5879],{"type":52,"value":2098},{"type":46,"tag":108,"props":5881,"children":5882},{"style":126},[5883],{"type":52,"value":1759},{"type":46,"tag":108,"props":5885,"children":5886},{"style":418},[5887],{"type":52,"value":1663},{"type":46,"tag":108,"props":5889,"children":5890},{"style":126},[5891],{"type":52,"value":481},{"type":46,"tag":108,"props":5893,"children":5894},{"style":418},[5895],{"type":52,"value":1593},{"type":46,"tag":108,"props":5897,"children":5898},{"style":126},[5899],{"type":52,"value":2199},{"type":46,"tag":108,"props":5901,"children":5902},{"style":126},[5903],{"type":52,"value":129},{"type":46,"tag":108,"props":5905,"children":5906},{"class":110,"line":1238},[5907,5911,5915,5919,5923,5927,5932,5936,5940,5945,5949,5953,5958,5962,5967,5972],{"type":46,"tag":108,"props":5908,"children":5909},{"style":115},[5910],{"type":52,"value":3946},{"type":46,"tag":108,"props":5912,"children":5913},{"style":418},[5914],{"type":52,"value":1663},{"type":46,"tag":108,"props":5916,"children":5917},{"style":126},[5918],{"type":52,"value":2450},{"type":46,"tag":108,"props":5920,"children":5921},{"style":2462},[5922],{"type":52,"value":3959},{"type":46,"tag":108,"props":5924,"children":5925},{"style":436},[5926],{"type":52,"value":1639},{"type":46,"tag":108,"props":5928,"children":5929},{"style":126},[5930],{"type":52,"value":5931},"new",{"type":46,"tag":108,"props":5933,"children":5934},{"style":2462},[5935],{"type":52,"value":4105},{"type":46,"tag":108,"props":5937,"children":5938},{"style":436},[5939],{"type":52,"value":1639},{"type":46,"tag":108,"props":5941,"children":5942},{"style":2462},[5943],{"type":52,"value":5944},"openConnection",{"type":46,"tag":108,"props":5946,"children":5947},{"style":436},[5948],{"type":52,"value":1639},{"type":46,"tag":108,"props":5950,"children":5951},{"style":126},[5952],{"type":52,"value":5346},{"type":46,"tag":108,"props":5954,"children":5955},{"style":136},[5956],{"type":52,"value":5957},"config",{"type":46,"tag":108,"props":5959,"children":5960},{"style":126},[5961],{"type":52,"value":2450},{"type":46,"tag":108,"props":5963,"children":5964},{"style":136},[5965],{"type":52,"value":5966},"url",{"type":46,"tag":108,"props":5968,"children":5969},{"style":436},[5970],{"type":52,"value":5971},")))",{"type":46,"tag":108,"props":5973,"children":5974},{"style":126},[5975],{"type":52,"value":320},{"type":46,"tag":108,"props":5977,"children":5978},{"class":110,"line":1260},[5979],{"type":46,"tag":108,"props":5980,"children":5981},{"style":126},[5982],{"type":52,"value":2982},{"type":46,"tag":108,"props":5984,"children":5985},{"class":110,"line":1282},[5986],{"type":46,"tag":108,"props":5987,"children":5988},{"emptyLinePlaceholder":544},[5989],{"type":52,"value":547},{"type":46,"tag":108,"props":5991,"children":5992},{"class":110,"line":1304},[5993,5997,6001,6005,6009,6013,6017],{"type":46,"tag":108,"props":5994,"children":5995},{"style":436},[5996],{"type":52,"value":2126},{"type":46,"tag":108,"props":5998,"children":5999},{"style":126},[6000],{"type":52,"value":1759},{"type":46,"tag":108,"props":6002,"children":6003},{"style":418},[6004],{"type":52,"value":1663},{"type":46,"tag":108,"props":6006,"children":6007},{"style":126},[6008],{"type":52,"value":481},{"type":46,"tag":108,"props":6010,"children":6011},{"style":418},[6012],{"type":52,"value":1593},{"type":46,"tag":108,"props":6014,"children":6015},{"style":126},[6016],{"type":52,"value":2199},{"type":46,"tag":108,"props":6018,"children":6019},{"style":126},[6020],{"type":52,"value":129},{"type":46,"tag":108,"props":6022,"children":6023},{"class":110,"line":1326},[6024,6028,6033,6037,6041,6045,6050,6055,6059,6063,6067,6071,6075],{"type":46,"tag":108,"props":6025,"children":6026},{"style":412},[6027],{"type":52,"value":4474},{"type":46,"tag":108,"props":6029,"children":6030},{"style":136},[6031],{"type":52,"value":6032}," url",{"type":46,"tag":108,"props":6034,"children":6035},{"style":126},[6036],{"type":52,"value":426},{"type":46,"tag":108,"props":6038,"children":6039},{"style":126},[6040],{"type":52,"value":2663},{"type":46,"tag":108,"props":6042,"children":6043},{"style":136},[6044],{"type":52,"value":3823},{"type":46,"tag":108,"props":6046,"children":6047},{"style":126},[6048],{"type":52,"value":6049},"?.",{"type":46,"tag":108,"props":6051,"children":6052},{"style":136},[6053],{"type":52,"value":6054},"shadowDatabaseUrl",{"type":46,"tag":108,"props":6056,"children":6057},{"style":126},[6058],{"type":52,"value":3323},{"type":46,"tag":108,"props":6060,"children":6061},{"style":126},[6062],{"type":52,"value":2663},{"type":46,"tag":108,"props":6064,"children":6065},{"style":136},[6066],{"type":52,"value":5957},{"type":46,"tag":108,"props":6068,"children":6069},{"style":126},[6070],{"type":52,"value":2450},{"type":46,"tag":108,"props":6072,"children":6073},{"style":136},[6074],{"type":52,"value":5966},{"type":46,"tag":108,"props":6076,"children":6077},{"style":126},[6078],{"type":52,"value":320},{"type":46,"tag":108,"props":6080,"children":6081},{"class":110,"line":1348},[6082,6086,6090,6094,6098,6102,6106,6110,6114,6118,6122,6126,6130],{"type":46,"tag":108,"props":6083,"children":6084},{"style":115},[6085],{"type":52,"value":3946},{"type":46,"tag":108,"props":6087,"children":6088},{"style":418},[6089],{"type":52,"value":1663},{"type":46,"tag":108,"props":6091,"children":6092},{"style":126},[6093],{"type":52,"value":2450},{"type":46,"tag":108,"props":6095,"children":6096},{"style":2462},[6097],{"type":52,"value":3959},{"type":46,"tag":108,"props":6099,"children":6100},{"style":436},[6101],{"type":52,"value":1639},{"type":46,"tag":108,"props":6103,"children":6104},{"style":126},[6105],{"type":52,"value":5931},{"type":46,"tag":108,"props":6107,"children":6108},{"style":2462},[6109],{"type":52,"value":4105},{"type":46,"tag":108,"props":6111,"children":6112},{"style":436},[6113],{"type":52,"value":1639},{"type":46,"tag":108,"props":6115,"children":6116},{"style":2462},[6117],{"type":52,"value":5944},{"type":46,"tag":108,"props":6119,"children":6120},{"style":436},[6121],{"type":52,"value":1639},{"type":46,"tag":108,"props":6123,"children":6124},{"style":136},[6125],{"type":52,"value":5966},{"type":46,"tag":108,"props":6127,"children":6128},{"style":436},[6129],{"type":52,"value":5971},{"type":46,"tag":108,"props":6131,"children":6132},{"style":126},[6133],{"type":52,"value":320},{"type":46,"tag":108,"props":6135,"children":6136},{"class":110,"line":1370},[6137],{"type":46,"tag":108,"props":6138,"children":6139},{"style":126},[6140],{"type":52,"value":2982},{"type":46,"tag":108,"props":6142,"children":6143},{"class":110,"line":1392},[6144],{"type":46,"tag":108,"props":6145,"children":6146},{"style":126},[6147],{"type":52,"value":842},{"type":46,"tag":61,"props":6149,"children":6151},{"id":6150},"conversion-helpers",[6152],{"type":52,"value":6153},"Conversion Helpers",{"type":46,"tag":394,"props":6155,"children":6157},{"id":6156},"argument-mapping-input",[6158],{"type":52,"value":6159},"Argument Mapping (input)",{"type":46,"tag":55,"props":6161,"children":6162},{},[6163],{"type":52,"value":6164},"Convert Prisma argument values to driver-native types:",{"type":46,"tag":68,"props":6166,"children":6168},{"className":101,"code":6167,"language":14,"meta":77,"style":77},"function mapArg(arg: unknown, argType: ArgType): unknown {\n  if (arg === null || arg === undefined) return null;\n\n  \u002F\u002F String → number for int columns\n  if (typeof arg === \"string\" && argType.scalarType === \"int\")\n    return Number.parseInt(arg, 10);\n\n  \u002F\u002F String → number for float columns\n  if (typeof arg === \"string\" && argType.scalarType === \"float\")\n    return Number.parseFloat(arg);\n\n  \u002F\u002F String → BigInt for bigint columns\n  if (typeof arg === \"string\" && argType.scalarType === \"bigint\")\n    return BigInt(arg);\n\n  \u002F\u002F Base64 string → Buffer for bytes columns\n  if (typeof arg === \"string\" && argType.scalarType === \"bytes\")\n    return Buffer.from(arg, \"base64\");\n\n  \u002F\u002F Boolean → 0\u002F1 for SQLite\n  if (typeof arg === \"boolean\" && \u002F* SQLite *\u002F)\n    return arg ? 1 : 0;\n\n  return arg;\n}\n",[6169],{"type":46,"tag":75,"props":6170,"children":6171},{"__ignoreMap":77},[6172,6230,6287,6294,6302,6376,6421,6428,6436,6508,6544,6551,6559,6631,6659,6666,6674,6746,6800,6807,6815,6864,6897,6904,6920],{"type":46,"tag":108,"props":6173,"children":6174},{"class":110,"line":111},[6175,6180,6185,6189,6193,6197,6201,6205,6210,6214,6218,6222,6226],{"type":46,"tag":108,"props":6176,"children":6177},{"style":412},[6178],{"type":52,"value":6179},"function",{"type":46,"tag":108,"props":6181,"children":6182},{"style":2462},[6183],{"type":52,"value":6184}," mapArg",{"type":46,"tag":108,"props":6186,"children":6187},{"style":126},[6188],{"type":52,"value":1639},{"type":46,"tag":108,"props":6190,"children":6191},{"style":1642},[6192],{"type":52,"value":2478},{"type":46,"tag":108,"props":6194,"children":6195},{"style":126},[6196],{"type":52,"value":98},{"type":46,"tag":108,"props":6198,"children":6199},{"style":418},[6200],{"type":52,"value":3443},{"type":46,"tag":108,"props":6202,"children":6203},{"style":126},[6204],{"type":52,"value":2483},{"type":46,"tag":108,"props":6206,"children":6207},{"style":1642},[6208],{"type":52,"value":6209}," argType",{"type":46,"tag":108,"props":6211,"children":6212},{"style":126},[6213],{"type":52,"value":98},{"type":46,"tag":108,"props":6215,"children":6216},{"style":418},[6217],{"type":52,"value":559},{"type":46,"tag":108,"props":6219,"children":6220},{"style":126},[6221],{"type":52,"value":1658},{"type":46,"tag":108,"props":6223,"children":6224},{"style":418},[6225],{"type":52,"value":3443},{"type":46,"tag":108,"props":6227,"children":6228},{"style":126},[6229],{"type":52,"value":129},{"type":46,"tag":108,"props":6231,"children":6232},{"class":110,"line":132},[6233,6238,6242,6246,6250,6255,6260,6265,6269,6273,6277,6282],{"type":46,"tag":108,"props":6234,"children":6235},{"style":115},[6236],{"type":52,"value":6237},"  if",{"type":46,"tag":108,"props":6239,"children":6240},{"style":436},[6241],{"type":52,"value":2922},{"type":46,"tag":108,"props":6243,"children":6244},{"style":136},[6245],{"type":52,"value":2478},{"type":46,"tag":108,"props":6247,"children":6248},{"style":126},[6249],{"type":52,"value":4926},{"type":46,"tag":108,"props":6251,"children":6252},{"style":126},[6253],{"type":52,"value":6254}," null",{"type":46,"tag":108,"props":6256,"children":6257},{"style":126},[6258],{"type":52,"value":6259}," ||",{"type":46,"tag":108,"props":6261,"children":6262},{"style":136},[6263],{"type":52,"value":6264}," arg",{"type":46,"tag":108,"props":6266,"children":6267},{"style":126},[6268],{"type":52,"value":4926},{"type":46,"tag":108,"props":6270,"children":6271},{"style":126},[6272],{"type":52,"value":4636},{"type":46,"tag":108,"props":6274,"children":6275},{"style":436},[6276],{"type":52,"value":2932},{"type":46,"tag":108,"props":6278,"children":6279},{"style":115},[6280],{"type":52,"value":6281},"return",{"type":46,"tag":108,"props":6283,"children":6284},{"style":126},[6285],{"type":52,"value":6286}," null;\n",{"type":46,"tag":108,"props":6288,"children":6289},{"class":110,"line":30},[6290],{"type":46,"tag":108,"props":6291,"children":6292},{"emptyLinePlaceholder":544},[6293],{"type":52,"value":547},{"type":46,"tag":108,"props":6295,"children":6296},{"class":110,"line":159},[6297],{"type":46,"tag":108,"props":6298,"children":6299},{"style":456},[6300],{"type":52,"value":6301},"  \u002F\u002F String → number for int columns\n",{"type":46,"tag":108,"props":6303,"children":6304},{"class":110,"line":172},[6305,6309,6313,6318,6322,6326,6330,6334,6338,6342,6346,6350,6355,6359,6363,6368,6372],{"type":46,"tag":108,"props":6306,"children":6307},{"style":115},[6308],{"type":52,"value":6237},{"type":46,"tag":108,"props":6310,"children":6311},{"style":436},[6312],{"type":52,"value":2922},{"type":46,"tag":108,"props":6314,"children":6315},{"style":126},[6316],{"type":52,"value":6317},"typeof",{"type":46,"tag":108,"props":6319,"children":6320},{"style":136},[6321],{"type":52,"value":6264},{"type":46,"tag":108,"props":6323,"children":6324},{"style":126},[6325],{"type":52,"value":4926},{"type":46,"tag":108,"props":6327,"children":6328},{"style":126},[6329],{"type":52,"value":305},{"type":46,"tag":108,"props":6331,"children":6332},{"style":308},[6333],{"type":52,"value":723},{"type":46,"tag":108,"props":6335,"children":6336},{"style":126},[6337],{"type":52,"value":315},{"type":46,"tag":108,"props":6339,"children":6340},{"style":126},[6341],{"type":52,"value":4641},{"type":46,"tag":108,"props":6343,"children":6344},{"style":136},[6345],{"type":52,"value":6209},{"type":46,"tag":108,"props":6347,"children":6348},{"style":126},[6349],{"type":52,"value":2450},{"type":46,"tag":108,"props":6351,"children":6352},{"style":136},[6353],{"type":52,"value":6354},"scalarType",{"type":46,"tag":108,"props":6356,"children":6357},{"style":126},[6358],{"type":52,"value":4926},{"type":46,"tag":108,"props":6360,"children":6361},{"style":126},[6362],{"type":52,"value":305},{"type":46,"tag":108,"props":6364,"children":6365},{"style":308},[6366],{"type":52,"value":6367},"int",{"type":46,"tag":108,"props":6369,"children":6370},{"style":126},[6371],{"type":52,"value":315},{"type":46,"tag":108,"props":6373,"children":6374},{"style":436},[6375],{"type":52,"value":2610},{"type":46,"tag":108,"props":6377,"children":6378},{"class":110,"line":185},[6379,6383,6388,6392,6397,6401,6405,6409,6413,6417],{"type":46,"tag":108,"props":6380,"children":6381},{"style":115},[6382],{"type":52,"value":3946},{"type":46,"tag":108,"props":6384,"children":6385},{"style":136},[6386],{"type":52,"value":6387}," Number",{"type":46,"tag":108,"props":6389,"children":6390},{"style":126},[6391],{"type":52,"value":2450},{"type":46,"tag":108,"props":6393,"children":6394},{"style":2462},[6395],{"type":52,"value":6396},"parseInt",{"type":46,"tag":108,"props":6398,"children":6399},{"style":436},[6400],{"type":52,"value":1639},{"type":46,"tag":108,"props":6402,"children":6403},{"style":136},[6404],{"type":52,"value":2478},{"type":46,"tag":108,"props":6406,"children":6407},{"style":126},[6408],{"type":52,"value":2483},{"type":46,"tag":108,"props":6410,"children":6411},{"style":892},[6412],{"type":52,"value":1105},{"type":46,"tag":108,"props":6414,"children":6415},{"style":436},[6416],{"type":52,"value":2344},{"type":46,"tag":108,"props":6418,"children":6419},{"style":126},[6420],{"type":52,"value":320},{"type":46,"tag":108,"props":6422,"children":6423},{"class":110,"line":198},[6424],{"type":46,"tag":108,"props":6425,"children":6426},{"emptyLinePlaceholder":544},[6427],{"type":52,"value":547},{"type":46,"tag":108,"props":6429,"children":6430},{"class":110,"line":211},[6431],{"type":46,"tag":108,"props":6432,"children":6433},{"style":456},[6434],{"type":52,"value":6435},"  \u002F\u002F String → number for float columns\n",{"type":46,"tag":108,"props":6437,"children":6438},{"class":110,"line":224},[6439,6443,6447,6451,6455,6459,6463,6467,6471,6475,6479,6483,6487,6491,6495,6500,6504],{"type":46,"tag":108,"props":6440,"children":6441},{"style":115},[6442],{"type":52,"value":6237},{"type":46,"tag":108,"props":6444,"children":6445},{"style":436},[6446],{"type":52,"value":2922},{"type":46,"tag":108,"props":6448,"children":6449},{"style":126},[6450],{"type":52,"value":6317},{"type":46,"tag":108,"props":6452,"children":6453},{"style":136},[6454],{"type":52,"value":6264},{"type":46,"tag":108,"props":6456,"children":6457},{"style":126},[6458],{"type":52,"value":4926},{"type":46,"tag":108,"props":6460,"children":6461},{"style":126},[6462],{"type":52,"value":305},{"type":46,"tag":108,"props":6464,"children":6465},{"style":308},[6466],{"type":52,"value":723},{"type":46,"tag":108,"props":6468,"children":6469},{"style":126},[6470],{"type":52,"value":315},{"type":46,"tag":108,"props":6472,"children":6473},{"style":126},[6474],{"type":52,"value":4641},{"type":46,"tag":108,"props":6476,"children":6477},{"style":136},[6478],{"type":52,"value":6209},{"type":46,"tag":108,"props":6480,"children":6481},{"style":126},[6482],{"type":52,"value":2450},{"type":46,"tag":108,"props":6484,"children":6485},{"style":136},[6486],{"type":52,"value":6354},{"type":46,"tag":108,"props":6488,"children":6489},{"style":126},[6490],{"type":52,"value":4926},{"type":46,"tag":108,"props":6492,"children":6493},{"style":126},[6494],{"type":52,"value":305},{"type":46,"tag":108,"props":6496,"children":6497},{"style":308},[6498],{"type":52,"value":6499},"float",{"type":46,"tag":108,"props":6501,"children":6502},{"style":126},[6503],{"type":52,"value":315},{"type":46,"tag":108,"props":6505,"children":6506},{"style":436},[6507],{"type":52,"value":2610},{"type":46,"tag":108,"props":6509,"children":6510},{"class":110,"line":237},[6511,6515,6519,6523,6528,6532,6536,6540],{"type":46,"tag":108,"props":6512,"children":6513},{"style":115},[6514],{"type":52,"value":3946},{"type":46,"tag":108,"props":6516,"children":6517},{"style":136},[6518],{"type":52,"value":6387},{"type":46,"tag":108,"props":6520,"children":6521},{"style":126},[6522],{"type":52,"value":2450},{"type":46,"tag":108,"props":6524,"children":6525},{"style":2462},[6526],{"type":52,"value":6527},"parseFloat",{"type":46,"tag":108,"props":6529,"children":6530},{"style":436},[6531],{"type":52,"value":1639},{"type":46,"tag":108,"props":6533,"children":6534},{"style":136},[6535],{"type":52,"value":2478},{"type":46,"tag":108,"props":6537,"children":6538},{"style":436},[6539],{"type":52,"value":2344},{"type":46,"tag":108,"props":6541,"children":6542},{"style":126},[6543],{"type":52,"value":320},{"type":46,"tag":108,"props":6545,"children":6546},{"class":110,"line":250},[6547],{"type":46,"tag":108,"props":6548,"children":6549},{"emptyLinePlaceholder":544},[6550],{"type":52,"value":547},{"type":46,"tag":108,"props":6552,"children":6553},{"class":110,"line":263},[6554],{"type":46,"tag":108,"props":6555,"children":6556},{"style":456},[6557],{"type":52,"value":6558},"  \u002F\u002F String → BigInt for bigint columns\n",{"type":46,"tag":108,"props":6560,"children":6561},{"class":110,"line":276},[6562,6566,6570,6574,6578,6582,6586,6590,6594,6598,6602,6606,6610,6614,6618,6623,6627],{"type":46,"tag":108,"props":6563,"children":6564},{"style":115},[6565],{"type":52,"value":6237},{"type":46,"tag":108,"props":6567,"children":6568},{"style":436},[6569],{"type":52,"value":2922},{"type":46,"tag":108,"props":6571,"children":6572},{"style":126},[6573],{"type":52,"value":6317},{"type":46,"tag":108,"props":6575,"children":6576},{"style":136},[6577],{"type":52,"value":6264},{"type":46,"tag":108,"props":6579,"children":6580},{"style":126},[6581],{"type":52,"value":4926},{"type":46,"tag":108,"props":6583,"children":6584},{"style":126},[6585],{"type":52,"value":305},{"type":46,"tag":108,"props":6587,"children":6588},{"style":308},[6589],{"type":52,"value":723},{"type":46,"tag":108,"props":6591,"children":6592},{"style":126},[6593],{"type":52,"value":315},{"type":46,"tag":108,"props":6595,"children":6596},{"style":126},[6597],{"type":52,"value":4641},{"type":46,"tag":108,"props":6599,"children":6600},{"style":136},[6601],{"type":52,"value":6209},{"type":46,"tag":108,"props":6603,"children":6604},{"style":126},[6605],{"type":52,"value":2450},{"type":46,"tag":108,"props":6607,"children":6608},{"style":136},[6609],{"type":52,"value":6354},{"type":46,"tag":108,"props":6611,"children":6612},{"style":126},[6613],{"type":52,"value":4926},{"type":46,"tag":108,"props":6615,"children":6616},{"style":126},[6617],{"type":52,"value":305},{"type":46,"tag":108,"props":6619,"children":6620},{"style":308},[6621],{"type":52,"value":6622},"bigint",{"type":46,"tag":108,"props":6624,"children":6625},{"style":126},[6626],{"type":52,"value":315},{"type":46,"tag":108,"props":6628,"children":6629},{"style":436},[6630],{"type":52,"value":2610},{"type":46,"tag":108,"props":6632,"children":6633},{"class":110,"line":289},[6634,6638,6643,6647,6651,6655],{"type":46,"tag":108,"props":6635,"children":6636},{"style":115},[6637],{"type":52,"value":3946},{"type":46,"tag":108,"props":6639,"children":6640},{"style":2462},[6641],{"type":52,"value":6642}," BigInt",{"type":46,"tag":108,"props":6644,"children":6645},{"style":436},[6646],{"type":52,"value":1639},{"type":46,"tag":108,"props":6648,"children":6649},{"style":136},[6650],{"type":52,"value":2478},{"type":46,"tag":108,"props":6652,"children":6653},{"style":436},[6654],{"type":52,"value":2344},{"type":46,"tag":108,"props":6656,"children":6657},{"style":126},[6658],{"type":52,"value":320},{"type":46,"tag":108,"props":6660,"children":6661},{"class":110,"line":323},[6662],{"type":46,"tag":108,"props":6663,"children":6664},{"emptyLinePlaceholder":544},[6665],{"type":52,"value":547},{"type":46,"tag":108,"props":6667,"children":6668},{"class":110,"line":335},[6669],{"type":46,"tag":108,"props":6670,"children":6671},{"style":456},[6672],{"type":52,"value":6673},"  \u002F\u002F Base64 string → Buffer for bytes columns\n",{"type":46,"tag":108,"props":6675,"children":6676},{"class":110,"line":348},[6677,6681,6685,6689,6693,6697,6701,6705,6709,6713,6717,6721,6725,6729,6733,6738,6742],{"type":46,"tag":108,"props":6678,"children":6679},{"style":115},[6680],{"type":52,"value":6237},{"type":46,"tag":108,"props":6682,"children":6683},{"style":436},[6684],{"type":52,"value":2922},{"type":46,"tag":108,"props":6686,"children":6687},{"style":126},[6688],{"type":52,"value":6317},{"type":46,"tag":108,"props":6690,"children":6691},{"style":136},[6692],{"type":52,"value":6264},{"type":46,"tag":108,"props":6694,"children":6695},{"style":126},[6696],{"type":52,"value":4926},{"type":46,"tag":108,"props":6698,"children":6699},{"style":126},[6700],{"type":52,"value":305},{"type":46,"tag":108,"props":6702,"children":6703},{"style":308},[6704],{"type":52,"value":723},{"type":46,"tag":108,"props":6706,"children":6707},{"style":126},[6708],{"type":52,"value":315},{"type":46,"tag":108,"props":6710,"children":6711},{"style":126},[6712],{"type":52,"value":4641},{"type":46,"tag":108,"props":6714,"children":6715},{"style":136},[6716],{"type":52,"value":6209},{"type":46,"tag":108,"props":6718,"children":6719},{"style":126},[6720],{"type":52,"value":2450},{"type":46,"tag":108,"props":6722,"children":6723},{"style":136},[6724],{"type":52,"value":6354},{"type":46,"tag":108,"props":6726,"children":6727},{"style":126},[6728],{"type":52,"value":4926},{"type":46,"tag":108,"props":6730,"children":6731},{"style":126},[6732],{"type":52,"value":305},{"type":46,"tag":108,"props":6734,"children":6735},{"style":308},[6736],{"type":52,"value":6737},"bytes",{"type":46,"tag":108,"props":6739,"children":6740},{"style":126},[6741],{"type":52,"value":315},{"type":46,"tag":108,"props":6743,"children":6744},{"style":436},[6745],{"type":52,"value":2610},{"type":46,"tag":108,"props":6747,"children":6748},{"class":110,"line":361},[6749,6753,6758,6762,6767,6771,6775,6779,6783,6788,6792,6796],{"type":46,"tag":108,"props":6750,"children":6751},{"style":115},[6752],{"type":52,"value":3946},{"type":46,"tag":108,"props":6754,"children":6755},{"style":136},[6756],{"type":52,"value":6757}," Buffer",{"type":46,"tag":108,"props":6759,"children":6760},{"style":126},[6761],{"type":52,"value":2450},{"type":46,"tag":108,"props":6763,"children":6764},{"style":2462},[6765],{"type":52,"value":6766},"from",{"type":46,"tag":108,"props":6768,"children":6769},{"style":436},[6770],{"type":52,"value":1639},{"type":46,"tag":108,"props":6772,"children":6773},{"style":136},[6774],{"type":52,"value":2478},{"type":46,"tag":108,"props":6776,"children":6777},{"style":126},[6778],{"type":52,"value":2483},{"type":46,"tag":108,"props":6780,"children":6781},{"style":126},[6782],{"type":52,"value":305},{"type":46,"tag":108,"props":6784,"children":6785},{"style":308},[6786],{"type":52,"value":6787},"base64",{"type":46,"tag":108,"props":6789,"children":6790},{"style":126},[6791],{"type":52,"value":315},{"type":46,"tag":108,"props":6793,"children":6794},{"style":436},[6795],{"type":52,"value":2344},{"type":46,"tag":108,"props":6797,"children":6798},{"style":126},[6799],{"type":52,"value":320},{"type":46,"tag":108,"props":6801,"children":6802},{"class":110,"line":1238},[6803],{"type":46,"tag":108,"props":6804,"children":6805},{"emptyLinePlaceholder":544},[6806],{"type":52,"value":547},{"type":46,"tag":108,"props":6808,"children":6809},{"class":110,"line":1260},[6810],{"type":46,"tag":108,"props":6811,"children":6812},{"style":456},[6813],{"type":52,"value":6814},"  \u002F\u002F Boolean → 0\u002F1 for SQLite\n",{"type":46,"tag":108,"props":6816,"children":6817},{"class":110,"line":1282},[6818,6822,6826,6830,6834,6838,6842,6847,6851,6855,6860],{"type":46,"tag":108,"props":6819,"children":6820},{"style":115},[6821],{"type":52,"value":6237},{"type":46,"tag":108,"props":6823,"children":6824},{"style":436},[6825],{"type":52,"value":2922},{"type":46,"tag":108,"props":6827,"children":6828},{"style":126},[6829],{"type":52,"value":6317},{"type":46,"tag":108,"props":6831,"children":6832},{"style":136},[6833],{"type":52,"value":6264},{"type":46,"tag":108,"props":6835,"children":6836},{"style":126},[6837],{"type":52,"value":4926},{"type":46,"tag":108,"props":6839,"children":6840},{"style":126},[6841],{"type":52,"value":305},{"type":46,"tag":108,"props":6843,"children":6844},{"style":308},[6845],{"type":52,"value":6846},"boolean",{"type":46,"tag":108,"props":6848,"children":6849},{"style":126},[6850],{"type":52,"value":315},{"type":46,"tag":108,"props":6852,"children":6853},{"style":126},[6854],{"type":52,"value":4641},{"type":46,"tag":108,"props":6856,"children":6857},{"style":456},[6858],{"type":52,"value":6859}," \u002F* SQLite *\u002F",{"type":46,"tag":108,"props":6861,"children":6862},{"style":436},[6863],{"type":52,"value":2610},{"type":46,"tag":108,"props":6865,"children":6866},{"class":110,"line":1304},[6867,6871,6875,6880,6884,6889,6893],{"type":46,"tag":108,"props":6868,"children":6869},{"style":115},[6870],{"type":52,"value":3946},{"type":46,"tag":108,"props":6872,"children":6873},{"style":136},[6874],{"type":52,"value":6264},{"type":46,"tag":108,"props":6876,"children":6877},{"style":126},[6878],{"type":52,"value":6879}," ?",{"type":46,"tag":108,"props":6881,"children":6882},{"style":892},[6883],{"type":52,"value":916},{"type":46,"tag":108,"props":6885,"children":6886},{"style":126},[6887],{"type":52,"value":6888}," :",{"type":46,"tag":108,"props":6890,"children":6891},{"style":892},[6892],{"type":52,"value":895},{"type":46,"tag":108,"props":6894,"children":6895},{"style":126},[6896],{"type":52,"value":320},{"type":46,"tag":108,"props":6898,"children":6899},{"class":110,"line":1326},[6900],{"type":46,"tag":108,"props":6901,"children":6902},{"emptyLinePlaceholder":544},[6903],{"type":52,"value":547},{"type":46,"tag":108,"props":6905,"children":6906},{"class":110,"line":1348},[6907,6912,6916],{"type":46,"tag":108,"props":6908,"children":6909},{"style":115},[6910],{"type":52,"value":6911},"  return",{"type":46,"tag":108,"props":6913,"children":6914},{"style":136},[6915],{"type":52,"value":6264},{"type":46,"tag":108,"props":6917,"children":6918},{"style":126},[6919],{"type":52,"value":320},{"type":46,"tag":108,"props":6921,"children":6922},{"class":110,"line":1370},[6923],{"type":46,"tag":108,"props":6924,"children":6925},{"style":126},[6926],{"type":52,"value":842},{"type":46,"tag":394,"props":6928,"children":6930},{"id":6929},"row-mapping-output",[6931],{"type":52,"value":6932},"Row Mapping (output)",{"type":46,"tag":55,"props":6934,"children":6935},{},[6936],{"type":52,"value":6937},"Convert driver result values to Prisma-expected types:",{"type":46,"tag":68,"props":6939,"children":6941},{"className":101,"code":6940,"language":14,"meta":77,"style":77},"function mapRow(row: unknown[], columnTypes: ColumnType[]): ResultValue[] {\n  const result: ResultValue[] = [];\n\n  for (let i = 0; i \u003C row.length; i++) {\n    const value = row[i] ?? null;\n    const colType = columnTypes[i];\n\n    if (value === null) {\n      result.push(null);\n      continue;\n    }\n\n    \u002F\u002F bigint → string for Int64 (JSON-safe)\n    if (typeof value === \"bigint\") {\n      result.push(value.toString());\n      continue;\n    }\n\n    \u002F\u002F Date → ISO 8601 string for DateTime\n    if (value instanceof Date) {\n      result.push(value.toISOString());\n      continue;\n    }\n\n    \u002F\u002F JSON objects → stringified\n    if (colType === ColumnTypeEnum.Json && typeof value === \"object\") {\n      result.push(JSON.stringify(value));\n      continue;\n    }\n\n    result.push(value as ResultValue);\n  }\n\n  return result;\n}\n",[6942],{"type":46,"tag":75,"props":6943,"children":6944},{"__ignoreMap":77},[6945,7016,7053,7060,7137,7177,7214,7221,7253,7287,7299,7306,7313,7321,7364,7405,7416,7423,7430,7438,7471,7511,7522,7529,7536,7544,7616,7665,7676,7683,7690,7730,7737,7744,7759],{"type":46,"tag":108,"props":6946,"children":6947},{"class":110,"line":111},[6948,6952,6956,6960,6964,6968,6972,6977,6981,6985,6989,6994,6998,7002,7007,7012],{"type":46,"tag":108,"props":6949,"children":6950},{"style":412},[6951],{"type":52,"value":6179},{"type":46,"tag":108,"props":6953,"children":6954},{"style":2462},[6955],{"type":52,"value":2836},{"type":46,"tag":108,"props":6957,"children":6958},{"style":126},[6959],{"type":52,"value":1639},{"type":46,"tag":108,"props":6961,"children":6962},{"style":1642},[6963],{"type":52,"value":2826},{"type":46,"tag":108,"props":6965,"children":6966},{"style":126},[6967],{"type":52,"value":98},{"type":46,"tag":108,"props":6969,"children":6970},{"style":418},[6971],{"type":52,"value":3443},{"type":46,"tag":108,"props":6973,"children":6974},{"style":136},[6975],{"type":52,"value":6976},"[]",{"type":46,"tag":108,"props":6978,"children":6979},{"style":126},[6980],{"type":52,"value":2483},{"type":46,"tag":108,"props":6982,"children":6983},{"style":1642},[6984],{"type":52,"value":2761},{"type":46,"tag":108,"props":6986,"children":6987},{"style":126},[6988],{"type":52,"value":98},{"type":46,"tag":108,"props":6990,"children":6991},{"style":418},[6992],{"type":52,"value":6993}," ColumnType",{"type":46,"tag":108,"props":6995,"children":6996},{"style":136},[6997],{"type":52,"value":6976},{"type":46,"tag":108,"props":6999,"children":7000},{"style":126},[7001],{"type":52,"value":1658},{"type":46,"tag":108,"props":7003,"children":7004},{"style":418},[7005],{"type":52,"value":7006}," ResultValue",{"type":46,"tag":108,"props":7008,"children":7009},{"style":136},[7010],{"type":52,"value":7011},"[] ",{"type":46,"tag":108,"props":7013,"children":7014},{"style":126},[7015],{"type":52,"value":2937},{"type":46,"tag":108,"props":7017,"children":7018},{"class":110,"line":132},[7019,7024,7028,7032,7036,7040,7044,7049],{"type":46,"tag":108,"props":7020,"children":7021},{"style":412},[7022],{"type":52,"value":7023},"  const",{"type":46,"tag":108,"props":7025,"children":7026},{"style":136},[7027],{"type":52,"value":2649},{"type":46,"tag":108,"props":7029,"children":7030},{"style":126},[7031],{"type":52,"value":98},{"type":46,"tag":108,"props":7033,"children":7034},{"style":418},[7035],{"type":52,"value":7006},{"type":46,"tag":108,"props":7037,"children":7038},{"style":436},[7039],{"type":52,"value":7011},{"type":46,"tag":108,"props":7041,"children":7042},{"style":126},[7043],{"type":52,"value":873},{"type":46,"tag":108,"props":7045,"children":7046},{"style":436},[7047],{"type":52,"value":7048}," []",{"type":46,"tag":108,"props":7050,"children":7051},{"style":126},[7052],{"type":52,"value":320},{"type":46,"tag":108,"props":7054,"children":7055},{"class":110,"line":30},[7056],{"type":46,"tag":108,"props":7057,"children":7058},{"emptyLinePlaceholder":544},[7059],{"type":52,"value":547},{"type":46,"tag":108,"props":7061,"children":7062},{"class":110,"line":159},[7063,7068,7072,7077,7081,7085,7089,7093,7097,7102,7107,7111,7116,7120,7124,7129,7133],{"type":46,"tag":108,"props":7064,"children":7065},{"style":115},[7066],{"type":52,"value":7067},"  for",{"type":46,"tag":108,"props":7069,"children":7070},{"style":436},[7071],{"type":52,"value":2922},{"type":46,"tag":108,"props":7073,"children":7074},{"style":412},[7075],{"type":52,"value":7076},"let",{"type":46,"tag":108,"props":7078,"children":7079},{"style":136},[7080],{"type":52,"value":2488},{"type":46,"tag":108,"props":7082,"children":7083},{"style":126},[7084],{"type":52,"value":426},{"type":46,"tag":108,"props":7086,"children":7087},{"style":892},[7088],{"type":52,"value":895},{"type":46,"tag":108,"props":7090,"children":7091},{"style":126},[7092],{"type":52,"value":453},{"type":46,"tag":108,"props":7094,"children":7095},{"style":136},[7096],{"type":52,"value":2488},{"type":46,"tag":108,"props":7098,"children":7099},{"style":126},[7100],{"type":52,"value":7101}," \u003C",{"type":46,"tag":108,"props":7103,"children":7104},{"style":136},[7105],{"type":52,"value":7106}," row",{"type":46,"tag":108,"props":7108,"children":7109},{"style":126},[7110],{"type":52,"value":2450},{"type":46,"tag":108,"props":7112,"children":7113},{"style":136},[7114],{"type":52,"value":7115},"length",{"type":46,"tag":108,"props":7117,"children":7118},{"style":126},[7119],{"type":52,"value":453},{"type":46,"tag":108,"props":7121,"children":7122},{"style":136},[7123],{"type":52,"value":2488},{"type":46,"tag":108,"props":7125,"children":7126},{"style":126},[7127],{"type":52,"value":7128},"++",{"type":46,"tag":108,"props":7130,"children":7131},{"style":436},[7132],{"type":52,"value":2932},{"type":46,"tag":108,"props":7134,"children":7135},{"style":126},[7136],{"type":52,"value":2937},{"type":46,"tag":108,"props":7138,"children":7139},{"class":110,"line":172},[7140,7144,7149,7153,7157,7161,7165,7169,7173],{"type":46,"tag":108,"props":7141,"children":7142},{"style":412},[7143],{"type":52,"value":4474},{"type":46,"tag":108,"props":7145,"children":7146},{"style":136},[7147],{"type":52,"value":7148}," value",{"type":46,"tag":108,"props":7150,"children":7151},{"style":126},[7152],{"type":52,"value":426},{"type":46,"tag":108,"props":7154,"children":7155},{"style":136},[7156],{"type":52,"value":7106},{"type":46,"tag":108,"props":7158,"children":7159},{"style":436},[7160],{"type":52,"value":2535},{"type":46,"tag":108,"props":7162,"children":7163},{"style":136},[7164],{"type":52,"value":2540},{"type":46,"tag":108,"props":7166,"children":7167},{"style":436},[7168],{"type":52,"value":2545},{"type":46,"tag":108,"props":7170,"children":7171},{"style":126},[7172],{"type":52,"value":2550},{"type":46,"tag":108,"props":7174,"children":7175},{"style":126},[7176],{"type":52,"value":6286},{"type":46,"tag":108,"props":7178,"children":7179},{"class":110,"line":185},[7180,7184,7189,7193,7197,7201,7205,7210],{"type":46,"tag":108,"props":7181,"children":7182},{"style":412},[7183],{"type":52,"value":4474},{"type":46,"tag":108,"props":7185,"children":7186},{"style":136},[7187],{"type":52,"value":7188}," colType",{"type":46,"tag":108,"props":7190,"children":7191},{"style":126},[7192],{"type":52,"value":426},{"type":46,"tag":108,"props":7194,"children":7195},{"style":136},[7196],{"type":52,"value":2761},{"type":46,"tag":108,"props":7198,"children":7199},{"style":436},[7200],{"type":52,"value":2535},{"type":46,"tag":108,"props":7202,"children":7203},{"style":136},[7204],{"type":52,"value":2540},{"type":46,"tag":108,"props":7206,"children":7207},{"style":436},[7208],{"type":52,"value":7209},"]",{"type":46,"tag":108,"props":7211,"children":7212},{"style":126},[7213],{"type":52,"value":320},{"type":46,"tag":108,"props":7215,"children":7216},{"class":110,"line":198},[7217],{"type":46,"tag":108,"props":7218,"children":7219},{"emptyLinePlaceholder":544},[7220],{"type":52,"value":547},{"type":46,"tag":108,"props":7222,"children":7223},{"class":110,"line":211},[7224,7228,7232,7237,7241,7245,7249],{"type":46,"tag":108,"props":7225,"children":7226},{"style":115},[7227],{"type":52,"value":4618},{"type":46,"tag":108,"props":7229,"children":7230},{"style":436},[7231],{"type":52,"value":2922},{"type":46,"tag":108,"props":7233,"children":7234},{"style":136},[7235],{"type":52,"value":7236},"value",{"type":46,"tag":108,"props":7238,"children":7239},{"style":126},[7240],{"type":52,"value":4926},{"type":46,"tag":108,"props":7242,"children":7243},{"style":126},[7244],{"type":52,"value":6254},{"type":46,"tag":108,"props":7246,"children":7247},{"style":436},[7248],{"type":52,"value":2932},{"type":46,"tag":108,"props":7250,"children":7251},{"style":126},[7252],{"type":52,"value":2937},{"type":46,"tag":108,"props":7254,"children":7255},{"class":110,"line":224},[7256,7261,7265,7270,7274,7279,7283],{"type":46,"tag":108,"props":7257,"children":7258},{"style":136},[7259],{"type":52,"value":7260},"      result",{"type":46,"tag":108,"props":7262,"children":7263},{"style":126},[7264],{"type":52,"value":2450},{"type":46,"tag":108,"props":7266,"children":7267},{"style":2462},[7268],{"type":52,"value":7269},"push",{"type":46,"tag":108,"props":7271,"children":7272},{"style":436},[7273],{"type":52,"value":1639},{"type":46,"tag":108,"props":7275,"children":7276},{"style":126},[7277],{"type":52,"value":7278},"null",{"type":46,"tag":108,"props":7280,"children":7281},{"style":436},[7282],{"type":52,"value":2344},{"type":46,"tag":108,"props":7284,"children":7285},{"style":126},[7286],{"type":52,"value":320},{"type":46,"tag":108,"props":7288,"children":7289},{"class":110,"line":237},[7290,7295],{"type":46,"tag":108,"props":7291,"children":7292},{"style":115},[7293],{"type":52,"value":7294},"      continue",{"type":46,"tag":108,"props":7296,"children":7297},{"style":126},[7298],{"type":52,"value":320},{"type":46,"tag":108,"props":7300,"children":7301},{"class":110,"line":250},[7302],{"type":46,"tag":108,"props":7303,"children":7304},{"style":126},[7305],{"type":52,"value":2974},{"type":46,"tag":108,"props":7307,"children":7308},{"class":110,"line":263},[7309],{"type":46,"tag":108,"props":7310,"children":7311},{"emptyLinePlaceholder":544},[7312],{"type":52,"value":547},{"type":46,"tag":108,"props":7314,"children":7315},{"class":110,"line":276},[7316],{"type":46,"tag":108,"props":7317,"children":7318},{"style":456},[7319],{"type":52,"value":7320},"    \u002F\u002F bigint → string for Int64 (JSON-safe)\n",{"type":46,"tag":108,"props":7322,"children":7323},{"class":110,"line":289},[7324,7328,7332,7336,7340,7344,7348,7352,7356,7360],{"type":46,"tag":108,"props":7325,"children":7326},{"style":115},[7327],{"type":52,"value":4618},{"type":46,"tag":108,"props":7329,"children":7330},{"style":436},[7331],{"type":52,"value":2922},{"type":46,"tag":108,"props":7333,"children":7334},{"style":126},[7335],{"type":52,"value":6317},{"type":46,"tag":108,"props":7337,"children":7338},{"style":136},[7339],{"type":52,"value":7148},{"type":46,"tag":108,"props":7341,"children":7342},{"style":126},[7343],{"type":52,"value":4926},{"type":46,"tag":108,"props":7345,"children":7346},{"style":126},[7347],{"type":52,"value":305},{"type":46,"tag":108,"props":7349,"children":7350},{"style":308},[7351],{"type":52,"value":6622},{"type":46,"tag":108,"props":7353,"children":7354},{"style":126},[7355],{"type":52,"value":315},{"type":46,"tag":108,"props":7357,"children":7358},{"style":436},[7359],{"type":52,"value":2932},{"type":46,"tag":108,"props":7361,"children":7362},{"style":126},[7363],{"type":52,"value":2937},{"type":46,"tag":108,"props":7365,"children":7366},{"class":110,"line":323},[7367,7371,7375,7379,7383,7387,7391,7396,7401],{"type":46,"tag":108,"props":7368,"children":7369},{"style":136},[7370],{"type":52,"value":7260},{"type":46,"tag":108,"props":7372,"children":7373},{"style":126},[7374],{"type":52,"value":2450},{"type":46,"tag":108,"props":7376,"children":7377},{"style":2462},[7378],{"type":52,"value":7269},{"type":46,"tag":108,"props":7380,"children":7381},{"style":436},[7382],{"type":52,"value":1639},{"type":46,"tag":108,"props":7384,"children":7385},{"style":136},[7386],{"type":52,"value":7236},{"type":46,"tag":108,"props":7388,"children":7389},{"style":126},[7390],{"type":52,"value":2450},{"type":46,"tag":108,"props":7392,"children":7393},{"style":2462},[7394],{"type":52,"value":7395},"toString",{"type":46,"tag":108,"props":7397,"children":7398},{"style":436},[7399],{"type":52,"value":7400},"())",{"type":46,"tag":108,"props":7402,"children":7403},{"style":126},[7404],{"type":52,"value":320},{"type":46,"tag":108,"props":7406,"children":7407},{"class":110,"line":335},[7408,7412],{"type":46,"tag":108,"props":7409,"children":7410},{"style":115},[7411],{"type":52,"value":7294},{"type":46,"tag":108,"props":7413,"children":7414},{"style":126},[7415],{"type":52,"value":320},{"type":46,"tag":108,"props":7417,"children":7418},{"class":110,"line":348},[7419],{"type":46,"tag":108,"props":7420,"children":7421},{"style":126},[7422],{"type":52,"value":2974},{"type":46,"tag":108,"props":7424,"children":7425},{"class":110,"line":361},[7426],{"type":46,"tag":108,"props":7427,"children":7428},{"emptyLinePlaceholder":544},[7429],{"type":52,"value":547},{"type":46,"tag":108,"props":7431,"children":7432},{"class":110,"line":1238},[7433],{"type":46,"tag":108,"props":7434,"children":7435},{"style":456},[7436],{"type":52,"value":7437},"    \u002F\u002F Date → ISO 8601 string for DateTime\n",{"type":46,"tag":108,"props":7439,"children":7440},{"class":110,"line":1260},[7441,7445,7449,7453,7458,7463,7467],{"type":46,"tag":108,"props":7442,"children":7443},{"style":115},[7444],{"type":52,"value":4618},{"type":46,"tag":108,"props":7446,"children":7447},{"style":436},[7448],{"type":52,"value":2922},{"type":46,"tag":108,"props":7450,"children":7451},{"style":136},[7452],{"type":52,"value":7236},{"type":46,"tag":108,"props":7454,"children":7455},{"style":126},[7456],{"type":52,"value":7457}," instanceof",{"type":46,"tag":108,"props":7459,"children":7460},{"style":418},[7461],{"type":52,"value":7462}," Date",{"type":46,"tag":108,"props":7464,"children":7465},{"style":436},[7466],{"type":52,"value":2932},{"type":46,"tag":108,"props":7468,"children":7469},{"style":126},[7470],{"type":52,"value":2937},{"type":46,"tag":108,"props":7472,"children":7473},{"class":110,"line":1282},[7474,7478,7482,7486,7490,7494,7498,7503,7507],{"type":46,"tag":108,"props":7475,"children":7476},{"style":136},[7477],{"type":52,"value":7260},{"type":46,"tag":108,"props":7479,"children":7480},{"style":126},[7481],{"type":52,"value":2450},{"type":46,"tag":108,"props":7483,"children":7484},{"style":2462},[7485],{"type":52,"value":7269},{"type":46,"tag":108,"props":7487,"children":7488},{"style":436},[7489],{"type":52,"value":1639},{"type":46,"tag":108,"props":7491,"children":7492},{"style":136},[7493],{"type":52,"value":7236},{"type":46,"tag":108,"props":7495,"children":7496},{"style":126},[7497],{"type":52,"value":2450},{"type":46,"tag":108,"props":7499,"children":7500},{"style":2462},[7501],{"type":52,"value":7502},"toISOString",{"type":46,"tag":108,"props":7504,"children":7505},{"style":436},[7506],{"type":52,"value":7400},{"type":46,"tag":108,"props":7508,"children":7509},{"style":126},[7510],{"type":52,"value":320},{"type":46,"tag":108,"props":7512,"children":7513},{"class":110,"line":1304},[7514,7518],{"type":46,"tag":108,"props":7515,"children":7516},{"style":115},[7517],{"type":52,"value":7294},{"type":46,"tag":108,"props":7519,"children":7520},{"style":126},[7521],{"type":52,"value":320},{"type":46,"tag":108,"props":7523,"children":7524},{"class":110,"line":1326},[7525],{"type":46,"tag":108,"props":7526,"children":7527},{"style":126},[7528],{"type":52,"value":2974},{"type":46,"tag":108,"props":7530,"children":7531},{"class":110,"line":1348},[7532],{"type":46,"tag":108,"props":7533,"children":7534},{"emptyLinePlaceholder":544},[7535],{"type":52,"value":547},{"type":46,"tag":108,"props":7537,"children":7538},{"class":110,"line":1370},[7539],{"type":46,"tag":108,"props":7540,"children":7541},{"style":456},[7542],{"type":52,"value":7543},"    \u002F\u002F JSON objects → stringified\n",{"type":46,"tag":108,"props":7545,"children":7546},{"class":110,"line":1392},[7547,7551,7555,7560,7564,7569,7573,7578,7582,7587,7591,7595,7599,7604,7608,7612],{"type":46,"tag":108,"props":7548,"children":7549},{"style":115},[7550],{"type":52,"value":4618},{"type":46,"tag":108,"props":7552,"children":7553},{"style":436},[7554],{"type":52,"value":2922},{"type":46,"tag":108,"props":7556,"children":7557},{"style":136},[7558],{"type":52,"value":7559},"colType",{"type":46,"tag":108,"props":7561,"children":7562},{"style":126},[7563],{"type":52,"value":4926},{"type":46,"tag":108,"props":7565,"children":7566},{"style":136},[7567],{"type":52,"value":7568}," ColumnTypeEnum",{"type":46,"tag":108,"props":7570,"children":7571},{"style":126},[7572],{"type":52,"value":2450},{"type":46,"tag":108,"props":7574,"children":7575},{"style":136},[7576],{"type":52,"value":7577},"Json",{"type":46,"tag":108,"props":7579,"children":7580},{"style":126},[7581],{"type":52,"value":4641},{"type":46,"tag":108,"props":7583,"children":7584},{"style":126},[7585],{"type":52,"value":7586}," typeof",{"type":46,"tag":108,"props":7588,"children":7589},{"style":136},[7590],{"type":52,"value":7148},{"type":46,"tag":108,"props":7592,"children":7593},{"style":126},[7594],{"type":52,"value":4926},{"type":46,"tag":108,"props":7596,"children":7597},{"style":126},[7598],{"type":52,"value":305},{"type":46,"tag":108,"props":7600,"children":7601},{"style":308},[7602],{"type":52,"value":7603},"object",{"type":46,"tag":108,"props":7605,"children":7606},{"style":126},[7607],{"type":52,"value":315},{"type":46,"tag":108,"props":7609,"children":7610},{"style":436},[7611],{"type":52,"value":2932},{"type":46,"tag":108,"props":7613,"children":7614},{"style":126},[7615],{"type":52,"value":2937},{"type":46,"tag":108,"props":7617,"children":7618},{"class":110,"line":1414},[7619,7623,7627,7631,7635,7640,7644,7649,7653,7657,7661],{"type":46,"tag":108,"props":7620,"children":7621},{"style":136},[7622],{"type":52,"value":7260},{"type":46,"tag":108,"props":7624,"children":7625},{"style":126},[7626],{"type":52,"value":2450},{"type":46,"tag":108,"props":7628,"children":7629},{"style":2462},[7630],{"type":52,"value":7269},{"type":46,"tag":108,"props":7632,"children":7633},{"style":436},[7634],{"type":52,"value":1639},{"type":46,"tag":108,"props":7636,"children":7637},{"style":136},[7638],{"type":52,"value":7639},"JSON",{"type":46,"tag":108,"props":7641,"children":7642},{"style":126},[7643],{"type":52,"value":2450},{"type":46,"tag":108,"props":7645,"children":7646},{"style":2462},[7647],{"type":52,"value":7648},"stringify",{"type":46,"tag":108,"props":7650,"children":7651},{"style":436},[7652],{"type":52,"value":1639},{"type":46,"tag":108,"props":7654,"children":7655},{"style":136},[7656],{"type":52,"value":7236},{"type":46,"tag":108,"props":7658,"children":7659},{"style":436},[7660],{"type":52,"value":2857},{"type":46,"tag":108,"props":7662,"children":7663},{"style":126},[7664],{"type":52,"value":320},{"type":46,"tag":108,"props":7666,"children":7667},{"class":110,"line":1436},[7668,7672],{"type":46,"tag":108,"props":7669,"children":7670},{"style":115},[7671],{"type":52,"value":7294},{"type":46,"tag":108,"props":7673,"children":7674},{"style":126},[7675],{"type":52,"value":320},{"type":46,"tag":108,"props":7677,"children":7678},{"class":110,"line":1458},[7679],{"type":46,"tag":108,"props":7680,"children":7681},{"style":126},[7682],{"type":52,"value":2974},{"type":46,"tag":108,"props":7684,"children":7685},{"class":110,"line":1480},[7686],{"type":46,"tag":108,"props":7687,"children":7688},{"emptyLinePlaceholder":544},[7689],{"type":52,"value":547},{"type":46,"tag":108,"props":7691,"children":7692},{"class":110,"line":1502},[7693,7698,7702,7706,7710,7714,7718,7722,7726],{"type":46,"tag":108,"props":7694,"children":7695},{"style":136},[7696],{"type":52,"value":7697},"    result",{"type":46,"tag":108,"props":7699,"children":7700},{"style":126},[7701],{"type":52,"value":2450},{"type":46,"tag":108,"props":7703,"children":7704},{"style":2462},[7705],{"type":52,"value":7269},{"type":46,"tag":108,"props":7707,"children":7708},{"style":436},[7709],{"type":52,"value":1639},{"type":46,"tag":108,"props":7711,"children":7712},{"style":136},[7713],{"type":52,"value":7236},{"type":46,"tag":108,"props":7715,"children":7716},{"style":115},[7717],{"type":52,"value":1578},{"type":46,"tag":108,"props":7719,"children":7720},{"style":418},[7721],{"type":52,"value":7006},{"type":46,"tag":108,"props":7723,"children":7724},{"style":436},[7725],{"type":52,"value":2344},{"type":46,"tag":108,"props":7727,"children":7728},{"style":126},[7729],{"type":52,"value":320},{"type":46,"tag":108,"props":7731,"children":7732},{"class":110,"line":1524},[7733],{"type":46,"tag":108,"props":7734,"children":7735},{"style":126},[7736],{"type":52,"value":2982},{"type":46,"tag":108,"props":7738,"children":7739},{"class":110,"line":1546},[7740],{"type":46,"tag":108,"props":7741,"children":7742},{"emptyLinePlaceholder":544},[7743],{"type":52,"value":547},{"type":46,"tag":108,"props":7745,"children":7746},{"class":110,"line":1568},[7747,7751,7755],{"type":46,"tag":108,"props":7748,"children":7749},{"style":115},[7750],{"type":52,"value":6911},{"type":46,"tag":108,"props":7752,"children":7753},{"style":136},[7754],{"type":52,"value":2649},{"type":46,"tag":108,"props":7756,"children":7757},{"style":126},[7758],{"type":52,"value":320},{"type":46,"tag":108,"props":7760,"children":7761},{"class":110,"line":3300},[7762],{"type":46,"tag":108,"props":7763,"children":7764},{"style":126},[7765],{"type":52,"value":842},{"type":46,"tag":394,"props":7767,"children":7769},{"id":7768},"column-type-inference",[7770],{"type":52,"value":7771},"Column Type Inference",{"type":46,"tag":55,"props":7773,"children":7774},{},[7775],{"type":52,"value":7776},"When the driver doesn't provide type metadata, infer from JS values:",{"type":46,"tag":68,"props":7778,"children":7780},{"className":101,"code":7779,"language":14,"meta":77,"style":77},"function inferColumnType(value: NonNullable\u003Cunknown>): ColumnType {\n  if (typeof value === \"boolean\") return ColumnTypeEnum.Boolean;\n  if (typeof value === \"bigint\") return ColumnTypeEnum.Int64;\n  if (value instanceof Uint8Array) return ColumnTypeEnum.Bytes;\n  if (value instanceof Date) return ColumnTypeEnum.DateTime;\n  if (Array.isArray(value)) return ColumnTypeEnum.Text; \u002F\u002F fallback\n  if (typeof value === \"object\") return ColumnTypeEnum.Json;\n  if (typeof value === \"number\") return ColumnTypeEnum.UnknownNumber;\n  return ColumnTypeEnum.Text;\n}\n",[7781],{"type":46,"tag":75,"props":7782,"children":7783},{"__ignoreMap":77},[7784,7834,7894,7954,8003,8051,8113,8172,8232,8255],{"type":46,"tag":108,"props":7785,"children":7786},{"class":110,"line":111},[7787,7791,7796,7800,7804,7808,7813,7817,7821,7826,7830],{"type":46,"tag":108,"props":7788,"children":7789},{"style":412},[7790],{"type":52,"value":6179},{"type":46,"tag":108,"props":7792,"children":7793},{"style":2462},[7794],{"type":52,"value":7795}," inferColumnType",{"type":46,"tag":108,"props":7797,"children":7798},{"style":126},[7799],{"type":52,"value":1639},{"type":46,"tag":108,"props":7801,"children":7802},{"style":1642},[7803],{"type":52,"value":7236},{"type":46,"tag":108,"props":7805,"children":7806},{"style":126},[7807],{"type":52,"value":98},{"type":46,"tag":108,"props":7809,"children":7810},{"style":418},[7811],{"type":52,"value":7812}," NonNullable",{"type":46,"tag":108,"props":7814,"children":7815},{"style":126},[7816],{"type":52,"value":481},{"type":46,"tag":108,"props":7818,"children":7819},{"style":418},[7820],{"type":52,"value":486},{"type":46,"tag":108,"props":7822,"children":7823},{"style":126},[7824],{"type":52,"value":7825},">):",{"type":46,"tag":108,"props":7827,"children":7828},{"style":418},[7829],{"type":52,"value":6993},{"type":46,"tag":108,"props":7831,"children":7832},{"style":126},[7833],{"type":52,"value":129},{"type":46,"tag":108,"props":7835,"children":7836},{"class":110,"line":132},[7837,7841,7845,7849,7853,7857,7861,7865,7869,7873,7877,7881,7885,7890],{"type":46,"tag":108,"props":7838,"children":7839},{"style":115},[7840],{"type":52,"value":6237},{"type":46,"tag":108,"props":7842,"children":7843},{"style":436},[7844],{"type":52,"value":2922},{"type":46,"tag":108,"props":7846,"children":7847},{"style":126},[7848],{"type":52,"value":6317},{"type":46,"tag":108,"props":7850,"children":7851},{"style":136},[7852],{"type":52,"value":7148},{"type":46,"tag":108,"props":7854,"children":7855},{"style":126},[7856],{"type":52,"value":4926},{"type":46,"tag":108,"props":7858,"children":7859},{"style":126},[7860],{"type":52,"value":305},{"type":46,"tag":108,"props":7862,"children":7863},{"style":308},[7864],{"type":52,"value":6846},{"type":46,"tag":108,"props":7866,"children":7867},{"style":126},[7868],{"type":52,"value":315},{"type":46,"tag":108,"props":7870,"children":7871},{"style":436},[7872],{"type":52,"value":2932},{"type":46,"tag":108,"props":7874,"children":7875},{"style":115},[7876],{"type":52,"value":6281},{"type":46,"tag":108,"props":7878,"children":7879},{"style":136},[7880],{"type":52,"value":7568},{"type":46,"tag":108,"props":7882,"children":7883},{"style":126},[7884],{"type":52,"value":2450},{"type":46,"tag":108,"props":7886,"children":7887},{"style":136},[7888],{"type":52,"value":7889},"Boolean",{"type":46,"tag":108,"props":7891,"children":7892},{"style":126},[7893],{"type":52,"value":320},{"type":46,"tag":108,"props":7895,"children":7896},{"class":110,"line":30},[7897,7901,7905,7909,7913,7917,7921,7925,7929,7933,7937,7941,7945,7950],{"type":46,"tag":108,"props":7898,"children":7899},{"style":115},[7900],{"type":52,"value":6237},{"type":46,"tag":108,"props":7902,"children":7903},{"style":436},[7904],{"type":52,"value":2922},{"type":46,"tag":108,"props":7906,"children":7907},{"style":126},[7908],{"type":52,"value":6317},{"type":46,"tag":108,"props":7910,"children":7911},{"style":136},[7912],{"type":52,"value":7148},{"type":46,"tag":108,"props":7914,"children":7915},{"style":126},[7916],{"type":52,"value":4926},{"type":46,"tag":108,"props":7918,"children":7919},{"style":126},[7920],{"type":52,"value":305},{"type":46,"tag":108,"props":7922,"children":7923},{"style":308},[7924],{"type":52,"value":6622},{"type":46,"tag":108,"props":7926,"children":7927},{"style":126},[7928],{"type":52,"value":315},{"type":46,"tag":108,"props":7930,"children":7931},{"style":436},[7932],{"type":52,"value":2932},{"type":46,"tag":108,"props":7934,"children":7935},{"style":115},[7936],{"type":52,"value":6281},{"type":46,"tag":108,"props":7938,"children":7939},{"style":136},[7940],{"type":52,"value":7568},{"type":46,"tag":108,"props":7942,"children":7943},{"style":126},[7944],{"type":52,"value":2450},{"type":46,"tag":108,"props":7946,"children":7947},{"style":136},[7948],{"type":52,"value":7949},"Int64",{"type":46,"tag":108,"props":7951,"children":7952},{"style":126},[7953],{"type":52,"value":320},{"type":46,"tag":108,"props":7955,"children":7956},{"class":110,"line":159},[7957,7961,7965,7969,7973,7978,7982,7986,7990,7994,7999],{"type":46,"tag":108,"props":7958,"children":7959},{"style":115},[7960],{"type":52,"value":6237},{"type":46,"tag":108,"props":7962,"children":7963},{"style":436},[7964],{"type":52,"value":2922},{"type":46,"tag":108,"props":7966,"children":7967},{"style":136},[7968],{"type":52,"value":7236},{"type":46,"tag":108,"props":7970,"children":7971},{"style":126},[7972],{"type":52,"value":7457},{"type":46,"tag":108,"props":7974,"children":7975},{"style":418},[7976],{"type":52,"value":7977}," Uint8Array",{"type":46,"tag":108,"props":7979,"children":7980},{"style":436},[7981],{"type":52,"value":2932},{"type":46,"tag":108,"props":7983,"children":7984},{"style":115},[7985],{"type":52,"value":6281},{"type":46,"tag":108,"props":7987,"children":7988},{"style":136},[7989],{"type":52,"value":7568},{"type":46,"tag":108,"props":7991,"children":7992},{"style":126},[7993],{"type":52,"value":2450},{"type":46,"tag":108,"props":7995,"children":7996},{"style":136},[7997],{"type":52,"value":7998},"Bytes",{"type":46,"tag":108,"props":8000,"children":8001},{"style":126},[8002],{"type":52,"value":320},{"type":46,"tag":108,"props":8004,"children":8005},{"class":110,"line":172},[8006,8010,8014,8018,8022,8026,8030,8034,8038,8042,8047],{"type":46,"tag":108,"props":8007,"children":8008},{"style":115},[8009],{"type":52,"value":6237},{"type":46,"tag":108,"props":8011,"children":8012},{"style":436},[8013],{"type":52,"value":2922},{"type":46,"tag":108,"props":8015,"children":8016},{"style":136},[8017],{"type":52,"value":7236},{"type":46,"tag":108,"props":8019,"children":8020},{"style":126},[8021],{"type":52,"value":7457},{"type":46,"tag":108,"props":8023,"children":8024},{"style":418},[8025],{"type":52,"value":7462},{"type":46,"tag":108,"props":8027,"children":8028},{"style":436},[8029],{"type":52,"value":2932},{"type":46,"tag":108,"props":8031,"children":8032},{"style":115},[8033],{"type":52,"value":6281},{"type":46,"tag":108,"props":8035,"children":8036},{"style":136},[8037],{"type":52,"value":7568},{"type":46,"tag":108,"props":8039,"children":8040},{"style":126},[8041],{"type":52,"value":2450},{"type":46,"tag":108,"props":8043,"children":8044},{"style":136},[8045],{"type":52,"value":8046},"DateTime",{"type":46,"tag":108,"props":8048,"children":8049},{"style":126},[8050],{"type":52,"value":320},{"type":46,"tag":108,"props":8052,"children":8053},{"class":110,"line":185},[8054,8058,8062,8066,8070,8075,8079,8083,8087,8091,8095,8099,8104,8108],{"type":46,"tag":108,"props":8055,"children":8056},{"style":115},[8057],{"type":52,"value":6237},{"type":46,"tag":108,"props":8059,"children":8060},{"style":436},[8061],{"type":52,"value":2922},{"type":46,"tag":108,"props":8063,"children":8064},{"style":136},[8065],{"type":52,"value":791},{"type":46,"tag":108,"props":8067,"children":8068},{"style":126},[8069],{"type":52,"value":2450},{"type":46,"tag":108,"props":8071,"children":8072},{"style":2462},[8073],{"type":52,"value":8074},"isArray",{"type":46,"tag":108,"props":8076,"children":8077},{"style":436},[8078],{"type":52,"value":1639},{"type":46,"tag":108,"props":8080,"children":8081},{"style":136},[8082],{"type":52,"value":7236},{"type":46,"tag":108,"props":8084,"children":8085},{"style":436},[8086],{"type":52,"value":4673},{"type":46,"tag":108,"props":8088,"children":8089},{"style":115},[8090],{"type":52,"value":6281},{"type":46,"tag":108,"props":8092,"children":8093},{"style":136},[8094],{"type":52,"value":7568},{"type":46,"tag":108,"props":8096,"children":8097},{"style":126},[8098],{"type":52,"value":2450},{"type":46,"tag":108,"props":8100,"children":8101},{"style":136},[8102],{"type":52,"value":8103},"Text",{"type":46,"tag":108,"props":8105,"children":8106},{"style":126},[8107],{"type":52,"value":453},{"type":46,"tag":108,"props":8109,"children":8110},{"style":456},[8111],{"type":52,"value":8112}," \u002F\u002F fallback\n",{"type":46,"tag":108,"props":8114,"children":8115},{"class":110,"line":198},[8116,8120,8124,8128,8132,8136,8140,8144,8148,8152,8156,8160,8164,8168],{"type":46,"tag":108,"props":8117,"children":8118},{"style":115},[8119],{"type":52,"value":6237},{"type":46,"tag":108,"props":8121,"children":8122},{"style":436},[8123],{"type":52,"value":2922},{"type":46,"tag":108,"props":8125,"children":8126},{"style":126},[8127],{"type":52,"value":6317},{"type":46,"tag":108,"props":8129,"children":8130},{"style":136},[8131],{"type":52,"value":7148},{"type":46,"tag":108,"props":8133,"children":8134},{"style":126},[8135],{"type":52,"value":4926},{"type":46,"tag":108,"props":8137,"children":8138},{"style":126},[8139],{"type":52,"value":305},{"type":46,"tag":108,"props":8141,"children":8142},{"style":308},[8143],{"type":52,"value":7603},{"type":46,"tag":108,"props":8145,"children":8146},{"style":126},[8147],{"type":52,"value":315},{"type":46,"tag":108,"props":8149,"children":8150},{"style":436},[8151],{"type":52,"value":2932},{"type":46,"tag":108,"props":8153,"children":8154},{"style":115},[8155],{"type":52,"value":6281},{"type":46,"tag":108,"props":8157,"children":8158},{"style":136},[8159],{"type":52,"value":7568},{"type":46,"tag":108,"props":8161,"children":8162},{"style":126},[8163],{"type":52,"value":2450},{"type":46,"tag":108,"props":8165,"children":8166},{"style":136},[8167],{"type":52,"value":7577},{"type":46,"tag":108,"props":8169,"children":8170},{"style":126},[8171],{"type":52,"value":320},{"type":46,"tag":108,"props":8173,"children":8174},{"class":110,"line":211},[8175,8179,8183,8187,8191,8195,8199,8203,8207,8211,8215,8219,8223,8228],{"type":46,"tag":108,"props":8176,"children":8177},{"style":115},[8178],{"type":52,"value":6237},{"type":46,"tag":108,"props":8180,"children":8181},{"style":436},[8182],{"type":52,"value":2922},{"type":46,"tag":108,"props":8184,"children":8185},{"style":126},[8186],{"type":52,"value":6317},{"type":46,"tag":108,"props":8188,"children":8189},{"style":136},[8190],{"type":52,"value":7148},{"type":46,"tag":108,"props":8192,"children":8193},{"style":126},[8194],{"type":52,"value":4926},{"type":46,"tag":108,"props":8196,"children":8197},{"style":126},[8198],{"type":52,"value":305},{"type":46,"tag":108,"props":8200,"children":8201},{"style":308},[8202],{"type":52,"value":3034},{"type":46,"tag":108,"props":8204,"children":8205},{"style":126},[8206],{"type":52,"value":315},{"type":46,"tag":108,"props":8208,"children":8209},{"style":436},[8210],{"type":52,"value":2932},{"type":46,"tag":108,"props":8212,"children":8213},{"style":115},[8214],{"type":52,"value":6281},{"type":46,"tag":108,"props":8216,"children":8217},{"style":136},[8218],{"type":52,"value":7568},{"type":46,"tag":108,"props":8220,"children":8221},{"style":126},[8222],{"type":52,"value":2450},{"type":46,"tag":108,"props":8224,"children":8225},{"style":136},[8226],{"type":52,"value":8227},"UnknownNumber",{"type":46,"tag":108,"props":8229,"children":8230},{"style":126},[8231],{"type":52,"value":320},{"type":46,"tag":108,"props":8233,"children":8234},{"class":110,"line":224},[8235,8239,8243,8247,8251],{"type":46,"tag":108,"props":8236,"children":8237},{"style":115},[8238],{"type":52,"value":6911},{"type":46,"tag":108,"props":8240,"children":8241},{"style":136},[8242],{"type":52,"value":7568},{"type":46,"tag":108,"props":8244,"children":8245},{"style":126},[8246],{"type":52,"value":2450},{"type":46,"tag":108,"props":8248,"children":8249},{"style":136},[8250],{"type":52,"value":8103},{"type":46,"tag":108,"props":8252,"children":8253},{"style":126},[8254],{"type":52,"value":320},{"type":46,"tag":108,"props":8256,"children":8257},{"class":110,"line":237},[8258],{"type":46,"tag":108,"props":8259,"children":8260},{"style":126},[8261],{"type":52,"value":842},{"type":46,"tag":61,"props":8263,"children":8265},{"id":8264},"error-handling",[8266],{"type":52,"value":8267},"Error Handling",{"type":46,"tag":55,"props":8269,"children":8270},{},[8271,8273,8279],{"type":52,"value":8272},"Map driver errors to ",{"type":46,"tag":75,"props":8274,"children":8276},{"className":8275},[],[8277],{"type":52,"value":8278},"MappedError",{"type":52,"value":8280}," for Prisma to handle correctly:",{"type":46,"tag":68,"props":8282,"children":8284},{"className":101,"code":8283,"language":14,"meta":77,"style":77},"function convertDriverError(error: unknown): MappedError {\n  if (error instanceof Error) {\n    \u002F\u002F Database-specific error mapping\n    const dbError = error as Error & { code?: string; errno?: number };\n\n    \u002F\u002F PostgreSQL example\n    if (dbError.code === \"23505\") {\n      return { kind: \"UniqueConstraintViolation\" };\n    }\n    if (dbError.code === \"23502\") {\n      return { kind: \"NullConstraintViolation\" };\n    }\n    if (dbError.code === \"23503\") {\n      return { kind: \"ForeignKeyConstraintViolation\" };\n    }\n    if (dbError.code === \"42P01\") {\n      return { kind: \"TableDoesNotExist\" };\n    }\n\n    \u002F\u002F SQLite example\n    if (error.name === \"SQLiteError\") {\n      return {\n        kind: \"sqlite\",\n        extendedCode: dbError.errno ?? 1,\n        message: error.message,\n      };\n    }\n\n    \u002F\u002F PostgreSQL raw error\n    if (dbError.code) {\n      return {\n        kind: \"postgres\",\n        code: dbError.code,\n        severity: \"ERROR\",\n        message: error.message,\n        detail: undefined,\n        column: undefined,\n        hint: undefined,\n      };\n    }\n  }\n\n  return { kind: \"GenericJs\", id: 0 };\n}\n",[8285],{"type":46,"tag":75,"props":8286,"children":8287},{"__ignoreMap":77},[8288,8329,8361,8369,8442,8449,8457,8506,8543,8550,8598,8634,8641,8689,8725,8732,8780,8816,8823,8830,8838,8887,8898,8925,8962,8991,8999,9006,9013,9021,9052,9063,9090,9118,9147,9174,9191,9207,9223,9230,9237,9244,9251,9304],{"type":46,"tag":108,"props":8289,"children":8290},{"class":110,"line":111},[8291,8295,8300,8304,8308,8312,8316,8320,8325],{"type":46,"tag":108,"props":8292,"children":8293},{"style":412},[8294],{"type":52,"value":6179},{"type":46,"tag":108,"props":8296,"children":8297},{"style":2462},[8298],{"type":52,"value":8299}," convertDriverError",{"type":46,"tag":108,"props":8301,"children":8302},{"style":126},[8303],{"type":52,"value":1639},{"type":46,"tag":108,"props":8305,"children":8306},{"style":1642},[8307],{"type":52,"value":3434},{"type":46,"tag":108,"props":8309,"children":8310},{"style":126},[8311],{"type":52,"value":98},{"type":46,"tag":108,"props":8313,"children":8314},{"style":418},[8315],{"type":52,"value":3443},{"type":46,"tag":108,"props":8317,"children":8318},{"style":126},[8319],{"type":52,"value":1658},{"type":46,"tag":108,"props":8321,"children":8322},{"style":418},[8323],{"type":52,"value":8324}," MappedError",{"type":46,"tag":108,"props":8326,"children":8327},{"style":126},[8328],{"type":52,"value":129},{"type":46,"tag":108,"props":8330,"children":8331},{"class":110,"line":132},[8332,8336,8340,8344,8348,8353,8357],{"type":46,"tag":108,"props":8333,"children":8334},{"style":115},[8335],{"type":52,"value":6237},{"type":46,"tag":108,"props":8337,"children":8338},{"style":436},[8339],{"type":52,"value":2922},{"type":46,"tag":108,"props":8341,"children":8342},{"style":136},[8343],{"type":52,"value":3434},{"type":46,"tag":108,"props":8345,"children":8346},{"style":126},[8347],{"type":52,"value":7457},{"type":46,"tag":108,"props":8349,"children":8350},{"style":418},[8351],{"type":52,"value":8352}," Error",{"type":46,"tag":108,"props":8354,"children":8355},{"style":436},[8356],{"type":52,"value":2932},{"type":46,"tag":108,"props":8358,"children":8359},{"style":126},[8360],{"type":52,"value":2937},{"type":46,"tag":108,"props":8362,"children":8363},{"class":110,"line":30},[8364],{"type":46,"tag":108,"props":8365,"children":8366},{"style":456},[8367],{"type":52,"value":8368},"    \u002F\u002F Database-specific error mapping\n",{"type":46,"tag":108,"props":8370,"children":8371},{"class":110,"line":159},[8372,8376,8381,8385,8390,8394,8398,8403,8407,8412,8416,8420,8424,8429,8433,8438],{"type":46,"tag":108,"props":8373,"children":8374},{"style":412},[8375],{"type":52,"value":4474},{"type":46,"tag":108,"props":8377,"children":8378},{"style":136},[8379],{"type":52,"value":8380}," dbError",{"type":46,"tag":108,"props":8382,"children":8383},{"style":126},[8384],{"type":52,"value":426},{"type":46,"tag":108,"props":8386,"children":8387},{"style":136},[8388],{"type":52,"value":8389}," error",{"type":46,"tag":108,"props":8391,"children":8392},{"style":115},[8393],{"type":52,"value":1578},{"type":46,"tag":108,"props":8395,"children":8396},{"style":418},[8397],{"type":52,"value":8352},{"type":46,"tag":108,"props":8399,"children":8400},{"style":126},[8401],{"type":52,"value":8402}," &",{"type":46,"tag":108,"props":8404,"children":8405},{"style":126},[8406],{"type":52,"value":1934},{"type":46,"tag":108,"props":8408,"children":8409},{"style":436},[8410],{"type":52,"value":8411}," code",{"type":46,"tag":108,"props":8413,"children":8414},{"style":126},[8415],{"type":52,"value":606},{"type":46,"tag":108,"props":8417,"children":8418},{"style":418},[8419],{"type":52,"value":448},{"type":46,"tag":108,"props":8421,"children":8422},{"style":126},[8423],{"type":52,"value":453},{"type":46,"tag":108,"props":8425,"children":8426},{"style":436},[8427],{"type":52,"value":8428}," errno",{"type":46,"tag":108,"props":8430,"children":8431},{"style":126},[8432],{"type":52,"value":606},{"type":46,"tag":108,"props":8434,"children":8435},{"style":418},[8436],{"type":52,"value":8437}," number",{"type":46,"tag":108,"props":8439,"children":8440},{"style":126},[8441],{"type":52,"value":1953},{"type":46,"tag":108,"props":8443,"children":8444},{"class":110,"line":172},[8445],{"type":46,"tag":108,"props":8446,"children":8447},{"emptyLinePlaceholder":544},[8448],{"type":52,"value":547},{"type":46,"tag":108,"props":8450,"children":8451},{"class":110,"line":185},[8452],{"type":46,"tag":108,"props":8453,"children":8454},{"style":456},[8455],{"type":52,"value":8456},"    \u002F\u002F PostgreSQL example\n",{"type":46,"tag":108,"props":8458,"children":8459},{"class":110,"line":198},[8460,8464,8468,8473,8477,8481,8485,8489,8494,8498,8502],{"type":46,"tag":108,"props":8461,"children":8462},{"style":115},[8463],{"type":52,"value":4618},{"type":46,"tag":108,"props":8465,"children":8466},{"style":436},[8467],{"type":52,"value":2922},{"type":46,"tag":108,"props":8469,"children":8470},{"style":136},[8471],{"type":52,"value":8472},"dbError",{"type":46,"tag":108,"props":8474,"children":8475},{"style":126},[8476],{"type":52,"value":2450},{"type":46,"tag":108,"props":8478,"children":8479},{"style":136},[8480],{"type":52,"value":75},{"type":46,"tag":108,"props":8482,"children":8483},{"style":126},[8484],{"type":52,"value":4926},{"type":46,"tag":108,"props":8486,"children":8487},{"style":126},[8488],{"type":52,"value":305},{"type":46,"tag":108,"props":8490,"children":8491},{"style":308},[8492],{"type":52,"value":8493},"23505",{"type":46,"tag":108,"props":8495,"children":8496},{"style":126},[8497],{"type":52,"value":315},{"type":46,"tag":108,"props":8499,"children":8500},{"style":436},[8501],{"type":52,"value":2932},{"type":46,"tag":108,"props":8503,"children":8504},{"style":126},[8505],{"type":52,"value":2937},{"type":46,"tag":108,"props":8507,"children":8508},{"class":110,"line":211},[8509,8513,8517,8522,8526,8530,8535,8539],{"type":46,"tag":108,"props":8510,"children":8511},{"style":115},[8512],{"type":52,"value":2876},{"type":46,"tag":108,"props":8514,"children":8515},{"style":126},[8516],{"type":52,"value":1934},{"type":46,"tag":108,"props":8518,"children":8519},{"style":436},[8520],{"type":52,"value":8521}," kind",{"type":46,"tag":108,"props":8523,"children":8524},{"style":126},[8525],{"type":52,"value":98},{"type":46,"tag":108,"props":8527,"children":8528},{"style":126},[8529],{"type":52,"value":305},{"type":46,"tag":108,"props":8531,"children":8532},{"style":308},[8533],{"type":52,"value":8534},"UniqueConstraintViolation",{"type":46,"tag":108,"props":8536,"children":8537},{"style":126},[8538],{"type":52,"value":315},{"type":46,"tag":108,"props":8540,"children":8541},{"style":126},[8542],{"type":52,"value":1953},{"type":46,"tag":108,"props":8544,"children":8545},{"class":110,"line":224},[8546],{"type":46,"tag":108,"props":8547,"children":8548},{"style":126},[8549],{"type":52,"value":2974},{"type":46,"tag":108,"props":8551,"children":8552},{"class":110,"line":237},[8553,8557,8561,8565,8569,8573,8577,8581,8586,8590,8594],{"type":46,"tag":108,"props":8554,"children":8555},{"style":115},[8556],{"type":52,"value":4618},{"type":46,"tag":108,"props":8558,"children":8559},{"style":436},[8560],{"type":52,"value":2922},{"type":46,"tag":108,"props":8562,"children":8563},{"style":136},[8564],{"type":52,"value":8472},{"type":46,"tag":108,"props":8566,"children":8567},{"style":126},[8568],{"type":52,"value":2450},{"type":46,"tag":108,"props":8570,"children":8571},{"style":136},[8572],{"type":52,"value":75},{"type":46,"tag":108,"props":8574,"children":8575},{"style":126},[8576],{"type":52,"value":4926},{"type":46,"tag":108,"props":8578,"children":8579},{"style":126},[8580],{"type":52,"value":305},{"type":46,"tag":108,"props":8582,"children":8583},{"style":308},[8584],{"type":52,"value":8585},"23502",{"type":46,"tag":108,"props":8587,"children":8588},{"style":126},[8589],{"type":52,"value":315},{"type":46,"tag":108,"props":8591,"children":8592},{"style":436},[8593],{"type":52,"value":2932},{"type":46,"tag":108,"props":8595,"children":8596},{"style":126},[8597],{"type":52,"value":2937},{"type":46,"tag":108,"props":8599,"children":8600},{"class":110,"line":250},[8601,8605,8609,8613,8617,8621,8626,8630],{"type":46,"tag":108,"props":8602,"children":8603},{"style":115},[8604],{"type":52,"value":2876},{"type":46,"tag":108,"props":8606,"children":8607},{"style":126},[8608],{"type":52,"value":1934},{"type":46,"tag":108,"props":8610,"children":8611},{"style":436},[8612],{"type":52,"value":8521},{"type":46,"tag":108,"props":8614,"children":8615},{"style":126},[8616],{"type":52,"value":98},{"type":46,"tag":108,"props":8618,"children":8619},{"style":126},[8620],{"type":52,"value":305},{"type":46,"tag":108,"props":8622,"children":8623},{"style":308},[8624],{"type":52,"value":8625},"NullConstraintViolation",{"type":46,"tag":108,"props":8627,"children":8628},{"style":126},[8629],{"type":52,"value":315},{"type":46,"tag":108,"props":8631,"children":8632},{"style":126},[8633],{"type":52,"value":1953},{"type":46,"tag":108,"props":8635,"children":8636},{"class":110,"line":263},[8637],{"type":46,"tag":108,"props":8638,"children":8639},{"style":126},[8640],{"type":52,"value":2974},{"type":46,"tag":108,"props":8642,"children":8643},{"class":110,"line":276},[8644,8648,8652,8656,8660,8664,8668,8672,8677,8681,8685],{"type":46,"tag":108,"props":8645,"children":8646},{"style":115},[8647],{"type":52,"value":4618},{"type":46,"tag":108,"props":8649,"children":8650},{"style":436},[8651],{"type":52,"value":2922},{"type":46,"tag":108,"props":8653,"children":8654},{"style":136},[8655],{"type":52,"value":8472},{"type":46,"tag":108,"props":8657,"children":8658},{"style":126},[8659],{"type":52,"value":2450},{"type":46,"tag":108,"props":8661,"children":8662},{"style":136},[8663],{"type":52,"value":75},{"type":46,"tag":108,"props":8665,"children":8666},{"style":126},[8667],{"type":52,"value":4926},{"type":46,"tag":108,"props":8669,"children":8670},{"style":126},[8671],{"type":52,"value":305},{"type":46,"tag":108,"props":8673,"children":8674},{"style":308},[8675],{"type":52,"value":8676},"23503",{"type":46,"tag":108,"props":8678,"children":8679},{"style":126},[8680],{"type":52,"value":315},{"type":46,"tag":108,"props":8682,"children":8683},{"style":436},[8684],{"type":52,"value":2932},{"type":46,"tag":108,"props":8686,"children":8687},{"style":126},[8688],{"type":52,"value":2937},{"type":46,"tag":108,"props":8690,"children":8691},{"class":110,"line":289},[8692,8696,8700,8704,8708,8712,8717,8721],{"type":46,"tag":108,"props":8693,"children":8694},{"style":115},[8695],{"type":52,"value":2876},{"type":46,"tag":108,"props":8697,"children":8698},{"style":126},[8699],{"type":52,"value":1934},{"type":46,"tag":108,"props":8701,"children":8702},{"style":436},[8703],{"type":52,"value":8521},{"type":46,"tag":108,"props":8705,"children":8706},{"style":126},[8707],{"type":52,"value":98},{"type":46,"tag":108,"props":8709,"children":8710},{"style":126},[8711],{"type":52,"value":305},{"type":46,"tag":108,"props":8713,"children":8714},{"style":308},[8715],{"type":52,"value":8716},"ForeignKeyConstraintViolation",{"type":46,"tag":108,"props":8718,"children":8719},{"style":126},[8720],{"type":52,"value":315},{"type":46,"tag":108,"props":8722,"children":8723},{"style":126},[8724],{"type":52,"value":1953},{"type":46,"tag":108,"props":8726,"children":8727},{"class":110,"line":323},[8728],{"type":46,"tag":108,"props":8729,"children":8730},{"style":126},[8731],{"type":52,"value":2974},{"type":46,"tag":108,"props":8733,"children":8734},{"class":110,"line":335},[8735,8739,8743,8747,8751,8755,8759,8763,8768,8772,8776],{"type":46,"tag":108,"props":8736,"children":8737},{"style":115},[8738],{"type":52,"value":4618},{"type":46,"tag":108,"props":8740,"children":8741},{"style":436},[8742],{"type":52,"value":2922},{"type":46,"tag":108,"props":8744,"children":8745},{"style":136},[8746],{"type":52,"value":8472},{"type":46,"tag":108,"props":8748,"children":8749},{"style":126},[8750],{"type":52,"value":2450},{"type":46,"tag":108,"props":8752,"children":8753},{"style":136},[8754],{"type":52,"value":75},{"type":46,"tag":108,"props":8756,"children":8757},{"style":126},[8758],{"type":52,"value":4926},{"type":46,"tag":108,"props":8760,"children":8761},{"style":126},[8762],{"type":52,"value":305},{"type":46,"tag":108,"props":8764,"children":8765},{"style":308},[8766],{"type":52,"value":8767},"42P01",{"type":46,"tag":108,"props":8769,"children":8770},{"style":126},[8771],{"type":52,"value":315},{"type":46,"tag":108,"props":8773,"children":8774},{"style":436},[8775],{"type":52,"value":2932},{"type":46,"tag":108,"props":8777,"children":8778},{"style":126},[8779],{"type":52,"value":2937},{"type":46,"tag":108,"props":8781,"children":8782},{"class":110,"line":348},[8783,8787,8791,8795,8799,8803,8808,8812],{"type":46,"tag":108,"props":8784,"children":8785},{"style":115},[8786],{"type":52,"value":2876},{"type":46,"tag":108,"props":8788,"children":8789},{"style":126},[8790],{"type":52,"value":1934},{"type":46,"tag":108,"props":8792,"children":8793},{"style":436},[8794],{"type":52,"value":8521},{"type":46,"tag":108,"props":8796,"children":8797},{"style":126},[8798],{"type":52,"value":98},{"type":46,"tag":108,"props":8800,"children":8801},{"style":126},[8802],{"type":52,"value":305},{"type":46,"tag":108,"props":8804,"children":8805},{"style":308},[8806],{"type":52,"value":8807},"TableDoesNotExist",{"type":46,"tag":108,"props":8809,"children":8810},{"style":126},[8811],{"type":52,"value":315},{"type":46,"tag":108,"props":8813,"children":8814},{"style":126},[8815],{"type":52,"value":1953},{"type":46,"tag":108,"props":8817,"children":8818},{"class":110,"line":361},[8819],{"type":46,"tag":108,"props":8820,"children":8821},{"style":126},[8822],{"type":52,"value":2974},{"type":46,"tag":108,"props":8824,"children":8825},{"class":110,"line":1238},[8826],{"type":46,"tag":108,"props":8827,"children":8828},{"emptyLinePlaceholder":544},[8829],{"type":52,"value":547},{"type":46,"tag":108,"props":8831,"children":8832},{"class":110,"line":1260},[8833],{"type":46,"tag":108,"props":8834,"children":8835},{"style":456},[8836],{"type":52,"value":8837},"    \u002F\u002F SQLite example\n",{"type":46,"tag":108,"props":8839,"children":8840},{"class":110,"line":1282},[8841,8845,8849,8853,8857,8862,8866,8870,8875,8879,8883],{"type":46,"tag":108,"props":8842,"children":8843},{"style":115},[8844],{"type":52,"value":4618},{"type":46,"tag":108,"props":8846,"children":8847},{"style":436},[8848],{"type":52,"value":2922},{"type":46,"tag":108,"props":8850,"children":8851},{"style":136},[8852],{"type":52,"value":3434},{"type":46,"tag":108,"props":8854,"children":8855},{"style":126},[8856],{"type":52,"value":2450},{"type":46,"tag":108,"props":8858,"children":8859},{"style":136},[8860],{"type":52,"value":8861},"name",{"type":46,"tag":108,"props":8863,"children":8864},{"style":126},[8865],{"type":52,"value":4926},{"type":46,"tag":108,"props":8867,"children":8868},{"style":126},[8869],{"type":52,"value":305},{"type":46,"tag":108,"props":8871,"children":8872},{"style":308},[8873],{"type":52,"value":8874},"SQLiteError",{"type":46,"tag":108,"props":8876,"children":8877},{"style":126},[8878],{"type":52,"value":315},{"type":46,"tag":108,"props":8880,"children":8881},{"style":436},[8882],{"type":52,"value":2932},{"type":46,"tag":108,"props":8884,"children":8885},{"style":126},[8886],{"type":52,"value":2937},{"type":46,"tag":108,"props":8888,"children":8889},{"class":110,"line":1304},[8890,8894],{"type":46,"tag":108,"props":8891,"children":8892},{"style":115},[8893],{"type":52,"value":2876},{"type":46,"tag":108,"props":8895,"children":8896},{"style":126},[8897],{"type":52,"value":129},{"type":46,"tag":108,"props":8899,"children":8900},{"class":110,"line":1326},[8901,8905,8909,8913,8917,8921],{"type":46,"tag":108,"props":8902,"children":8903},{"style":436},[8904],{"type":52,"value":4709},{"type":46,"tag":108,"props":8906,"children":8907},{"style":126},[8908],{"type":52,"value":98},{"type":46,"tag":108,"props":8910,"children":8911},{"style":126},[8912],{"type":52,"value":305},{"type":46,"tag":108,"props":8914,"children":8915},{"style":308},[8916],{"type":52,"value":2041},{"type":46,"tag":108,"props":8918,"children":8919},{"style":126},[8920],{"type":52,"value":315},{"type":46,"tag":108,"props":8922,"children":8923},{"style":126},[8924],{"type":52,"value":144},{"type":46,"tag":108,"props":8926,"children":8927},{"class":110,"line":1348},[8928,8933,8937,8941,8945,8950,8954,8958],{"type":46,"tag":108,"props":8929,"children":8930},{"style":436},[8931],{"type":52,"value":8932},"        extendedCode",{"type":46,"tag":108,"props":8934,"children":8935},{"style":126},[8936],{"type":52,"value":98},{"type":46,"tag":108,"props":8938,"children":8939},{"style":136},[8940],{"type":52,"value":8380},{"type":46,"tag":108,"props":8942,"children":8943},{"style":126},[8944],{"type":52,"value":2450},{"type":46,"tag":108,"props":8946,"children":8947},{"style":136},[8948],{"type":52,"value":8949},"errno",{"type":46,"tag":108,"props":8951,"children":8952},{"style":126},[8953],{"type":52,"value":3323},{"type":46,"tag":108,"props":8955,"children":8956},{"style":892},[8957],{"type":52,"value":916},{"type":46,"tag":108,"props":8959,"children":8960},{"style":126},[8961],{"type":52,"value":144},{"type":46,"tag":108,"props":8963,"children":8964},{"class":110,"line":1370},[8965,8970,8974,8978,8982,8987],{"type":46,"tag":108,"props":8966,"children":8967},{"style":436},[8968],{"type":52,"value":8969},"        message",{"type":46,"tag":108,"props":8971,"children":8972},{"style":126},[8973],{"type":52,"value":98},{"type":46,"tag":108,"props":8975,"children":8976},{"style":136},[8977],{"type":52,"value":8389},{"type":46,"tag":108,"props":8979,"children":8980},{"style":126},[8981],{"type":52,"value":2450},{"type":46,"tag":108,"props":8983,"children":8984},{"style":136},[8985],{"type":52,"value":8986},"message",{"type":46,"tag":108,"props":8988,"children":8989},{"style":126},[8990],{"type":52,"value":144},{"type":46,"tag":108,"props":8992,"children":8993},{"class":110,"line":1392},[8994],{"type":46,"tag":108,"props":8995,"children":8996},{"style":126},[8997],{"type":52,"value":8998},"      };\n",{"type":46,"tag":108,"props":9000,"children":9001},{"class":110,"line":1414},[9002],{"type":46,"tag":108,"props":9003,"children":9004},{"style":126},[9005],{"type":52,"value":2974},{"type":46,"tag":108,"props":9007,"children":9008},{"class":110,"line":1436},[9009],{"type":46,"tag":108,"props":9010,"children":9011},{"emptyLinePlaceholder":544},[9012],{"type":52,"value":547},{"type":46,"tag":108,"props":9014,"children":9015},{"class":110,"line":1458},[9016],{"type":46,"tag":108,"props":9017,"children":9018},{"style":456},[9019],{"type":52,"value":9020},"    \u002F\u002F PostgreSQL raw error\n",{"type":46,"tag":108,"props":9022,"children":9023},{"class":110,"line":1480},[9024,9028,9032,9036,9040,9044,9048],{"type":46,"tag":108,"props":9025,"children":9026},{"style":115},[9027],{"type":52,"value":4618},{"type":46,"tag":108,"props":9029,"children":9030},{"style":436},[9031],{"type":52,"value":2922},{"type":46,"tag":108,"props":9033,"children":9034},{"style":136},[9035],{"type":52,"value":8472},{"type":46,"tag":108,"props":9037,"children":9038},{"style":126},[9039],{"type":52,"value":2450},{"type":46,"tag":108,"props":9041,"children":9042},{"style":136},[9043],{"type":52,"value":75},{"type":46,"tag":108,"props":9045,"children":9046},{"style":436},[9047],{"type":52,"value":2932},{"type":46,"tag":108,"props":9049,"children":9050},{"style":126},[9051],{"type":52,"value":2937},{"type":46,"tag":108,"props":9053,"children":9054},{"class":110,"line":1502},[9055,9059],{"type":46,"tag":108,"props":9056,"children":9057},{"style":115},[9058],{"type":52,"value":2876},{"type":46,"tag":108,"props":9060,"children":9061},{"style":126},[9062],{"type":52,"value":129},{"type":46,"tag":108,"props":9064,"children":9065},{"class":110,"line":1524},[9066,9070,9074,9078,9082,9086],{"type":46,"tag":108,"props":9067,"children":9068},{"style":436},[9069],{"type":52,"value":4709},{"type":46,"tag":108,"props":9071,"children":9072},{"style":126},[9073],{"type":52,"value":98},{"type":46,"tag":108,"props":9075,"children":9076},{"style":126},[9077],{"type":52,"value":305},{"type":46,"tag":108,"props":9079,"children":9080},{"style":308},[9081],{"type":52,"value":2024},{"type":46,"tag":108,"props":9083,"children":9084},{"style":126},[9085],{"type":52,"value":315},{"type":46,"tag":108,"props":9087,"children":9088},{"style":126},[9089],{"type":52,"value":144},{"type":46,"tag":108,"props":9091,"children":9092},{"class":110,"line":1546},[9093,9098,9102,9106,9110,9114],{"type":46,"tag":108,"props":9094,"children":9095},{"style":436},[9096],{"type":52,"value":9097},"        code",{"type":46,"tag":108,"props":9099,"children":9100},{"style":126},[9101],{"type":52,"value":98},{"type":46,"tag":108,"props":9103,"children":9104},{"style":136},[9105],{"type":52,"value":8380},{"type":46,"tag":108,"props":9107,"children":9108},{"style":126},[9109],{"type":52,"value":2450},{"type":46,"tag":108,"props":9111,"children":9112},{"style":136},[9113],{"type":52,"value":75},{"type":46,"tag":108,"props":9115,"children":9116},{"style":126},[9117],{"type":52,"value":144},{"type":46,"tag":108,"props":9119,"children":9120},{"class":110,"line":1568},[9121,9126,9130,9134,9139,9143],{"type":46,"tag":108,"props":9122,"children":9123},{"style":436},[9124],{"type":52,"value":9125},"        severity",{"type":46,"tag":108,"props":9127,"children":9128},{"style":126},[9129],{"type":52,"value":98},{"type":46,"tag":108,"props":9131,"children":9132},{"style":126},[9133],{"type":52,"value":305},{"type":46,"tag":108,"props":9135,"children":9136},{"style":308},[9137],{"type":52,"value":9138},"ERROR",{"type":46,"tag":108,"props":9140,"children":9141},{"style":126},[9142],{"type":52,"value":315},{"type":46,"tag":108,"props":9144,"children":9145},{"style":126},[9146],{"type":52,"value":144},{"type":46,"tag":108,"props":9148,"children":9149},{"class":110,"line":3300},[9150,9154,9158,9162,9166,9170],{"type":46,"tag":108,"props":9151,"children":9152},{"style":436},[9153],{"type":52,"value":8969},{"type":46,"tag":108,"props":9155,"children":9156},{"style":126},[9157],{"type":52,"value":98},{"type":46,"tag":108,"props":9159,"children":9160},{"style":136},[9161],{"type":52,"value":8389},{"type":46,"tag":108,"props":9163,"children":9164},{"style":126},[9165],{"type":52,"value":2450},{"type":46,"tag":108,"props":9167,"children":9168},{"style":136},[9169],{"type":52,"value":8986},{"type":46,"tag":108,"props":9171,"children":9172},{"style":126},[9173],{"type":52,"value":144},{"type":46,"tag":108,"props":9175,"children":9176},{"class":110,"line":3334},[9177,9182,9186],{"type":46,"tag":108,"props":9178,"children":9179},{"style":436},[9180],{"type":52,"value":9181},"        detail",{"type":46,"tag":108,"props":9183,"children":9184},{"style":126},[9185],{"type":52,"value":98},{"type":46,"tag":108,"props":9187,"children":9188},{"style":126},[9189],{"type":52,"value":9190}," undefined,\n",{"type":46,"tag":108,"props":9192,"children":9193},{"class":110,"line":3362},[9194,9199,9203],{"type":46,"tag":108,"props":9195,"children":9196},{"style":436},[9197],{"type":52,"value":9198},"        column",{"type":46,"tag":108,"props":9200,"children":9201},{"style":126},[9202],{"type":52,"value":98},{"type":46,"tag":108,"props":9204,"children":9205},{"style":126},[9206],{"type":52,"value":9190},{"type":46,"tag":108,"props":9208,"children":9209},{"class":110,"line":3390},[9210,9215,9219],{"type":46,"tag":108,"props":9211,"children":9212},{"style":436},[9213],{"type":52,"value":9214},"        hint",{"type":46,"tag":108,"props":9216,"children":9217},{"style":126},[9218],{"type":52,"value":98},{"type":46,"tag":108,"props":9220,"children":9221},{"style":126},[9222],{"type":52,"value":9190},{"type":46,"tag":108,"props":9224,"children":9225},{"class":110,"line":3398},[9226],{"type":46,"tag":108,"props":9227,"children":9228},{"style":126},[9229],{"type":52,"value":8998},{"type":46,"tag":108,"props":9231,"children":9232},{"class":110,"line":3406},[9233],{"type":46,"tag":108,"props":9234,"children":9235},{"style":126},[9236],{"type":52,"value":2974},{"type":46,"tag":108,"props":9238,"children":9239},{"class":110,"line":3414},[9240],{"type":46,"tag":108,"props":9241,"children":9242},{"style":126},[9243],{"type":52,"value":2982},{"type":46,"tag":108,"props":9245,"children":9246},{"class":110,"line":3459},[9247],{"type":46,"tag":108,"props":9248,"children":9249},{"emptyLinePlaceholder":544},[9250],{"type":52,"value":547},{"type":46,"tag":108,"props":9252,"children":9253},{"class":110,"line":3503},[9254,9258,9262,9266,9270,9274,9279,9283,9287,9292,9296,9300],{"type":46,"tag":108,"props":9255,"children":9256},{"style":115},[9257],{"type":52,"value":6911},{"type":46,"tag":108,"props":9259,"children":9260},{"style":126},[9261],{"type":52,"value":1934},{"type":46,"tag":108,"props":9263,"children":9264},{"style":436},[9265],{"type":52,"value":8521},{"type":46,"tag":108,"props":9267,"children":9268},{"style":126},[9269],{"type":52,"value":98},{"type":46,"tag":108,"props":9271,"children":9272},{"style":126},[9273],{"type":52,"value":305},{"type":46,"tag":108,"props":9275,"children":9276},{"style":308},[9277],{"type":52,"value":9278},"GenericJs",{"type":46,"tag":108,"props":9280,"children":9281},{"style":126},[9282],{"type":52,"value":315},{"type":46,"tag":108,"props":9284,"children":9285},{"style":126},[9286],{"type":52,"value":2483},{"type":46,"tag":108,"props":9288,"children":9289},{"style":436},[9290],{"type":52,"value":9291}," id",{"type":46,"tag":108,"props":9293,"children":9294},{"style":126},[9295],{"type":52,"value":98},{"type":46,"tag":108,"props":9297,"children":9298},{"style":892},[9299],{"type":52,"value":895},{"type":46,"tag":108,"props":9301,"children":9302},{"style":126},[9303],{"type":52,"value":1953},{"type":46,"tag":108,"props":9305,"children":9306},{"class":110,"line":26},[9307],{"type":46,"tag":108,"props":9308,"children":9309},{"style":126},[9310],{"type":52,"value":842},{"type":46,"tag":61,"props":9312,"children":9314},{"id":9313},"database-specific-notes",[9315],{"type":52,"value":9316},"Database-Specific Notes",{"type":46,"tag":394,"props":9318,"children":9319},{"id":2041},[9320],{"type":52,"value":9321},"SQLite",{"type":46,"tag":9323,"props":9324,"children":9325},"ul",{},[9326,9347,9359,9377],{"type":46,"tag":9327,"props":9328,"children":9329},"li",{},[9330,9332,9338,9340,9345],{"type":52,"value":9331},"Set ",{"type":46,"tag":75,"props":9333,"children":9335},{"className":9334},[],[9336],{"type":52,"value":9337},"safeIntegers: true",{"type":52,"value":9339}," when opening the database to get ",{"type":46,"tag":75,"props":9341,"children":9343},{"className":9342},[],[9344],{"type":52,"value":6622},{"type":52,"value":9346}," for large integers",{"type":46,"tag":9327,"props":9348,"children":9349},{},[9350,9352,9357],{"type":52,"value":9351},"Only ",{"type":46,"tag":75,"props":9353,"children":9355},{"className":9354},[],[9356],{"type":52,"value":4583},{"type":52,"value":9358}," isolation level is valid",{"type":46,"tag":9327,"props":9360,"children":9361},{},[9362,9368,9370,9375],{"type":46,"tag":75,"props":9363,"children":9365},{"className":9364},[],[9366],{"type":52,"value":9367},"executeScript",{"type":52,"value":9369},": split on ",{"type":46,"tag":75,"props":9371,"children":9373},{"className":9372},[],[9374],{"type":52,"value":453},{"type":52,"value":9376}," and run each statement individually",{"type":46,"tag":9327,"props":9378,"children":9379},{},[9380],{"type":52,"value":9381},"Boolean values: store as 0\u002F1, return as boolean",{"type":46,"tag":394,"props":9383,"children":9385},{"id":9384},"postgresql",[9386],{"type":52,"value":9387},"PostgreSQL",{"type":46,"tag":9323,"props":9389,"children":9390},{},[9391,9396,9407,9420,9438,9449],{"type":46,"tag":9327,"props":9392,"children":9393},{},[9394],{"type":52,"value":9395},"All standard isolation levels are valid",{"type":46,"tag":9327,"props":9397,"children":9398},{},[9399,9401],{"type":52,"value":9400},"For connection pooling (PgBouncer), use ",{"type":46,"tag":75,"props":9402,"children":9404},{"className":9403},[],[9405],{"type":52,"value":9406},"prepare: false",{"type":46,"tag":9327,"props":9408,"children":9409},{},[9410,9412,9418],{"type":52,"value":9411},"Transactions require a dedicated connection (",{"type":46,"tag":75,"props":9413,"children":9415},{"className":9414},[],[9416],{"type":52,"value":9417},"reserve()",{"type":52,"value":9419}," pattern)",{"type":46,"tag":9327,"props":9421,"children":9422},{},[9423,9428,9430,9436],{"type":46,"tag":75,"props":9424,"children":9426},{"className":9425},[],[9427],{"type":52,"value":9367},{"type":52,"value":9429},": use multi-statement execution (",{"type":46,"tag":75,"props":9431,"children":9433},{"className":9432},[],[9434],{"type":52,"value":9435},".simple()",{"type":52,"value":9437}," in some drivers)",{"type":46,"tag":9327,"props":9439,"children":9440},{},[9441,9447],{"type":46,"tag":75,"props":9442,"children":9444},{"className":9443},[],[9445],{"type":52,"value":9446},"int8",{"type":52,"value":9448}," columns may return as string (already stringified by driver)",{"type":46,"tag":9327,"props":9450,"children":9451},{},[9452,9458],{"type":46,"tag":75,"props":9453,"children":9455},{"className":9454},[],[9456],{"type":52,"value":9457},"numeric",{"type":52,"value":9459}," columns return as string to preserve precision",{"type":46,"tag":394,"props":9461,"children":9463},{"id":9462},"mysqlmariadb",[9464],{"type":52,"value":9465},"MySQL\u002FMariaDB",{"type":46,"tag":9323,"props":9467,"children":9468},{},[9469,9498,9511],{"type":46,"tag":9327,"props":9470,"children":9471},{},[9472,9474,9479,9481,9486,9487,9492,9493],{"type":52,"value":9473},"Supports ",{"type":46,"tag":75,"props":9475,"children":9477},{"className":9476},[],[9478],{"type":52,"value":4523},{"type":52,"value":9480},", ",{"type":46,"tag":75,"props":9482,"children":9484},{"className":9483},[],[9485],{"type":52,"value":4543},{"type":52,"value":9480},{"type":46,"tag":75,"props":9488,"children":9490},{"className":9489},[],[9491],{"type":52,"value":4563},{"type":52,"value":9480},{"type":46,"tag":75,"props":9494,"children":9496},{"className":9495},[],[9497],{"type":52,"value":4583},{"type":46,"tag":9327,"props":9499,"children":9500},{},[9501,9503,9509],{"type":52,"value":9502},"Use ",{"type":46,"tag":75,"props":9504,"children":9506},{"className":9505},[],[9507],{"type":52,"value":9508},"?",{"type":52,"value":9510}," placeholders for parameters",{"type":46,"tag":9327,"props":9512,"children":9513},{},[9514,9516,9522],{"type":52,"value":9515},"Handle ",{"type":46,"tag":75,"props":9517,"children":9519},{"className":9518},[],[9520],{"type":52,"value":9521},"BIGINT",{"type":52,"value":9523}," as string for large values",{"type":46,"tag":61,"props":9525,"children":9527},{"id":9526},"testing-strategy",[9528],{"type":52,"value":9529},"Testing Strategy",{"type":46,"tag":394,"props":9531,"children":9533},{"id":9532},"unit-tests-no-prismaclient",[9534],{"type":52,"value":9535},"Unit Tests (no PrismaClient)",{"type":46,"tag":55,"props":9537,"children":9538},{},[9539],{"type":52,"value":9540},"Test the adapter directly with the raw database driver:",{"type":46,"tag":68,"props":9542,"children":9544},{"className":101,"code":9543,"language":14,"meta":77,"style":77},"describe(\"queryRaw\", () => {\n  test(\"returns column names and types\", async () => {\n    const adapter = new MyAdapter(createTestConnection());\n    const result = await adapter.queryRaw({\n      sql: \"SELECT id, name FROM users\",\n      args: [],\n      argTypes: [],\n    });\n    expect(result.columnNames).toEqual([\"id\", \"name\"]);\n    expect(result.columnTypes[0]).toBe(ColumnTypeEnum.Int32);\n  });\n});\n\ndescribe(\"startTransaction\", () => {\n  test(\"commit persists changes\", async () => {\n    const adapter = new MyAdapter(createTestConnection());\n    const tx = await adapter.startTransaction();\n    await tx.executeRaw({\n      sql: \"INSERT INTO users (name) VALUES (?)\",\n      args: [\"Alice\"],\n      argTypes: [],\n    });\n    \u002F\u002F Prisma sends COMMIT via executeRaw\n    await tx.executeRaw({ sql: \"COMMIT\", args: [], argTypes: [] });\n    await tx.commit(); \u002F\u002F lifecycle hook only\n    \u002F\u002F Verify data persisted\n  });\n});\n",[9545],{"type":46,"tag":75,"props":9546,"children":9547},{"__ignoreMap":77},[9548,9589,9635,9676,9715,9744,9764,9784,9799,9881,9953,9969,9984,9991,10031,10075,10114,10154,10181,10209,10246,10265,10280,10288,10383,10416,10424,10439],{"type":46,"tag":108,"props":9549,"children":9550},{"class":110,"line":111},[9551,9556,9560,9564,9569,9573,9577,9581,9585],{"type":46,"tag":108,"props":9552,"children":9553},{"style":2462},[9554],{"type":52,"value":9555},"describe",{"type":46,"tag":108,"props":9557,"children":9558},{"style":136},[9559],{"type":52,"value":1639},{"type":46,"tag":108,"props":9561,"children":9562},{"style":126},[9563],{"type":52,"value":315},{"type":46,"tag":108,"props":9565,"children":9566},{"style":308},[9567],{"type":52,"value":9568},"queryRaw",{"type":46,"tag":108,"props":9570,"children":9571},{"style":126},[9572],{"type":52,"value":315},{"type":46,"tag":108,"props":9574,"children":9575},{"style":126},[9576],{"type":52,"value":2483},{"type":46,"tag":108,"props":9578,"children":9579},{"style":126},[9580],{"type":52,"value":3674},{"type":46,"tag":108,"props":9582,"children":9583},{"style":412},[9584],{"type":52,"value":2831},{"type":46,"tag":108,"props":9586,"children":9587},{"style":126},[9588],{"type":52,"value":129},{"type":46,"tag":108,"props":9590,"children":9591},{"class":110,"line":132},[9592,9597,9601,9605,9610,9614,9618,9623,9627,9631],{"type":46,"tag":108,"props":9593,"children":9594},{"style":2462},[9595],{"type":52,"value":9596},"  test",{"type":46,"tag":108,"props":9598,"children":9599},{"style":436},[9600],{"type":52,"value":1639},{"type":46,"tag":108,"props":9602,"children":9603},{"style":126},[9604],{"type":52,"value":315},{"type":46,"tag":108,"props":9606,"children":9607},{"style":308},[9608],{"type":52,"value":9609},"returns column names and types",{"type":46,"tag":108,"props":9611,"children":9612},{"style":126},[9613],{"type":52,"value":315},{"type":46,"tag":108,"props":9615,"children":9616},{"style":126},[9617],{"type":52,"value":2483},{"type":46,"tag":108,"props":9619,"children":9620},{"style":412},[9621],{"type":52,"value":9622}," async",{"type":46,"tag":108,"props":9624,"children":9625},{"style":126},[9626],{"type":52,"value":3674},{"type":46,"tag":108,"props":9628,"children":9629},{"style":412},[9630],{"type":52,"value":2831},{"type":46,"tag":108,"props":9632,"children":9633},{"style":126},[9634],{"type":52,"value":129},{"type":46,"tag":108,"props":9636,"children":9637},{"class":110,"line":30},[9638,9642,9647,9651,9655,9659,9663,9668,9672],{"type":46,"tag":108,"props":9639,"children":9640},{"style":412},[9641],{"type":52,"value":4474},{"type":46,"tag":108,"props":9643,"children":9644},{"style":136},[9645],{"type":52,"value":9646}," adapter",{"type":46,"tag":108,"props":9648,"children":9649},{"style":126},[9650],{"type":52,"value":426},{"type":46,"tag":108,"props":9652,"children":9653},{"style":126},[9654],{"type":52,"value":3470},{"type":46,"tag":108,"props":9656,"children":9657},{"style":2462},[9658],{"type":52,"value":4105},{"type":46,"tag":108,"props":9660,"children":9661},{"style":436},[9662],{"type":52,"value":1639},{"type":46,"tag":108,"props":9664,"children":9665},{"style":2462},[9666],{"type":52,"value":9667},"createTestConnection",{"type":46,"tag":108,"props":9669,"children":9670},{"style":436},[9671],{"type":52,"value":7400},{"type":46,"tag":108,"props":9673,"children":9674},{"style":126},[9675],{"type":52,"value":320},{"type":46,"tag":108,"props":9677,"children":9678},{"class":110,"line":159},[9679,9683,9687,9691,9695,9699,9703,9707,9711],{"type":46,"tag":108,"props":9680,"children":9681},{"style":412},[9682],{"type":52,"value":4474},{"type":46,"tag":108,"props":9684,"children":9685},{"style":136},[9686],{"type":52,"value":2649},{"type":46,"tag":108,"props":9688,"children":9689},{"style":126},[9690],{"type":52,"value":426},{"type":46,"tag":108,"props":9692,"children":9693},{"style":115},[9694],{"type":52,"value":2658},{"type":46,"tag":108,"props":9696,"children":9697},{"style":136},[9698],{"type":52,"value":9646},{"type":46,"tag":108,"props":9700,"children":9701},{"style":126},[9702],{"type":52,"value":2450},{"type":46,"tag":108,"props":9704,"children":9705},{"style":2462},[9706],{"type":52,"value":9568},{"type":46,"tag":108,"props":9708,"children":9709},{"style":436},[9710],{"type":52,"value":1639},{"type":46,"tag":108,"props":9712,"children":9713},{"style":126},[9714],{"type":52,"value":2937},{"type":46,"tag":108,"props":9716,"children":9717},{"class":110,"line":172},[9718,9723,9727,9731,9736,9740],{"type":46,"tag":108,"props":9719,"children":9720},{"style":436},[9721],{"type":52,"value":9722},"      sql",{"type":46,"tag":108,"props":9724,"children":9725},{"style":126},[9726],{"type":52,"value":98},{"type":46,"tag":108,"props":9728,"children":9729},{"style":126},[9730],{"type":52,"value":305},{"type":46,"tag":108,"props":9732,"children":9733},{"style":308},[9734],{"type":52,"value":9735},"SELECT id, name FROM users",{"type":46,"tag":108,"props":9737,"children":9738},{"style":126},[9739],{"type":52,"value":315},{"type":46,"tag":108,"props":9741,"children":9742},{"style":126},[9743],{"type":52,"value":144},{"type":46,"tag":108,"props":9745,"children":9746},{"class":110,"line":185},[9747,9752,9756,9760],{"type":46,"tag":108,"props":9748,"children":9749},{"style":436},[9750],{"type":52,"value":9751},"      args",{"type":46,"tag":108,"props":9753,"children":9754},{"style":126},[9755],{"type":52,"value":98},{"type":46,"tag":108,"props":9757,"children":9758},{"style":436},[9759],{"type":52,"value":7048},{"type":46,"tag":108,"props":9761,"children":9762},{"style":126},[9763],{"type":52,"value":144},{"type":46,"tag":108,"props":9765,"children":9766},{"class":110,"line":198},[9767,9772,9776,9780],{"type":46,"tag":108,"props":9768,"children":9769},{"style":436},[9770],{"type":52,"value":9771},"      argTypes",{"type":46,"tag":108,"props":9773,"children":9774},{"style":126},[9775],{"type":52,"value":98},{"type":46,"tag":108,"props":9777,"children":9778},{"style":436},[9779],{"type":52,"value":7048},{"type":46,"tag":108,"props":9781,"children":9782},{"style":126},[9783],{"type":52,"value":144},{"type":46,"tag":108,"props":9785,"children":9786},{"class":110,"line":211},[9787,9791,9795],{"type":46,"tag":108,"props":9788,"children":9789},{"style":126},[9790],{"type":52,"value":2912},{"type":46,"tag":108,"props":9792,"children":9793},{"style":436},[9794],{"type":52,"value":2344},{"type":46,"tag":108,"props":9796,"children":9797},{"style":126},[9798],{"type":52,"value":320},{"type":46,"tag":108,"props":9800,"children":9801},{"class":110,"line":224},[9802,9807,9811,9816,9820,9825,9829,9833,9838,9843,9847,9852,9856,9860,9864,9868,9872,9877],{"type":46,"tag":108,"props":9803,"children":9804},{"style":2462},[9805],{"type":52,"value":9806},"    expect",{"type":46,"tag":108,"props":9808,"children":9809},{"style":436},[9810],{"type":52,"value":1639},{"type":46,"tag":108,"props":9812,"children":9813},{"style":136},[9814],{"type":52,"value":9815},"result",{"type":46,"tag":108,"props":9817,"children":9818},{"style":126},[9819],{"type":52,"value":2450},{"type":46,"tag":108,"props":9821,"children":9822},{"style":136},[9823],{"type":52,"value":9824},"columnNames",{"type":46,"tag":108,"props":9826,"children":9827},{"style":436},[9828],{"type":52,"value":2344},{"type":46,"tag":108,"props":9830,"children":9831},{"style":126},[9832],{"type":52,"value":2450},{"type":46,"tag":108,"props":9834,"children":9835},{"style":2462},[9836],{"type":52,"value":9837},"toEqual",{"type":46,"tag":108,"props":9839,"children":9840},{"style":436},[9841],{"type":52,"value":9842},"([",{"type":46,"tag":108,"props":9844,"children":9845},{"style":126},[9846],{"type":52,"value":315},{"type":46,"tag":108,"props":9848,"children":9849},{"style":308},[9850],{"type":52,"value":9851},"id",{"type":46,"tag":108,"props":9853,"children":9854},{"style":126},[9855],{"type":52,"value":315},{"type":46,"tag":108,"props":9857,"children":9858},{"style":126},[9859],{"type":52,"value":2483},{"type":46,"tag":108,"props":9861,"children":9862},{"style":126},[9863],{"type":52,"value":305},{"type":46,"tag":108,"props":9865,"children":9866},{"style":308},[9867],{"type":52,"value":8861},{"type":46,"tag":108,"props":9869,"children":9870},{"style":126},[9871],{"type":52,"value":315},{"type":46,"tag":108,"props":9873,"children":9874},{"style":436},[9875],{"type":52,"value":9876},"])",{"type":46,"tag":108,"props":9878,"children":9879},{"style":126},[9880],{"type":52,"value":320},{"type":46,"tag":108,"props":9882,"children":9883},{"class":110,"line":237},[9884,9888,9892,9896,9900,9905,9909,9914,9918,9922,9927,9931,9936,9940,9945,9949],{"type":46,"tag":108,"props":9885,"children":9886},{"style":2462},[9887],{"type":52,"value":9806},{"type":46,"tag":108,"props":9889,"children":9890},{"style":436},[9891],{"type":52,"value":1639},{"type":46,"tag":108,"props":9893,"children":9894},{"style":136},[9895],{"type":52,"value":9815},{"type":46,"tag":108,"props":9897,"children":9898},{"style":126},[9899],{"type":52,"value":2450},{"type":46,"tag":108,"props":9901,"children":9902},{"style":136},[9903],{"type":52,"value":9904},"columnTypes",{"type":46,"tag":108,"props":9906,"children":9907},{"style":436},[9908],{"type":52,"value":2535},{"type":46,"tag":108,"props":9910,"children":9911},{"style":892},[9912],{"type":52,"value":9913},"0",{"type":46,"tag":108,"props":9915,"children":9916},{"style":436},[9917],{"type":52,"value":9876},{"type":46,"tag":108,"props":9919,"children":9920},{"style":126},[9921],{"type":52,"value":2450},{"type":46,"tag":108,"props":9923,"children":9924},{"style":2462},[9925],{"type":52,"value":9926},"toBe",{"type":46,"tag":108,"props":9928,"children":9929},{"style":436},[9930],{"type":52,"value":1639},{"type":46,"tag":108,"props":9932,"children":9933},{"style":136},[9934],{"type":52,"value":9935},"ColumnTypeEnum",{"type":46,"tag":108,"props":9937,"children":9938},{"style":126},[9939],{"type":52,"value":2450},{"type":46,"tag":108,"props":9941,"children":9942},{"style":136},[9943],{"type":52,"value":9944},"Int32",{"type":46,"tag":108,"props":9946,"children":9947},{"style":436},[9948],{"type":52,"value":2344},{"type":46,"tag":108,"props":9950,"children":9951},{"style":126},[9952],{"type":52,"value":320},{"type":46,"tag":108,"props":9954,"children":9955},{"class":110,"line":250},[9956,9961,9965],{"type":46,"tag":108,"props":9957,"children":9958},{"style":126},[9959],{"type":52,"value":9960},"  }",{"type":46,"tag":108,"props":9962,"children":9963},{"style":436},[9964],{"type":52,"value":2344},{"type":46,"tag":108,"props":9966,"children":9967},{"style":126},[9968],{"type":52,"value":320},{"type":46,"tag":108,"props":9970,"children":9971},{"class":110,"line":263},[9972,9976,9980],{"type":46,"tag":108,"props":9973,"children":9974},{"style":126},[9975],{"type":52,"value":295},{"type":46,"tag":108,"props":9977,"children":9978},{"style":136},[9979],{"type":52,"value":2344},{"type":46,"tag":108,"props":9981,"children":9982},{"style":126},[9983],{"type":52,"value":320},{"type":46,"tag":108,"props":9985,"children":9986},{"class":110,"line":276},[9987],{"type":46,"tag":108,"props":9988,"children":9989},{"emptyLinePlaceholder":544},[9990],{"type":52,"value":547},{"type":46,"tag":108,"props":9992,"children":9993},{"class":110,"line":289},[9994,9998,10002,10006,10011,10015,10019,10023,10027],{"type":46,"tag":108,"props":9995,"children":9996},{"style":2462},[9997],{"type":52,"value":9555},{"type":46,"tag":108,"props":9999,"children":10000},{"style":136},[10001],{"type":52,"value":1639},{"type":46,"tag":108,"props":10003,"children":10004},{"style":126},[10005],{"type":52,"value":315},{"type":46,"tag":108,"props":10007,"children":10008},{"style":308},[10009],{"type":52,"value":10010},"startTransaction",{"type":46,"tag":108,"props":10012,"children":10013},{"style":126},[10014],{"type":52,"value":315},{"type":46,"tag":108,"props":10016,"children":10017},{"style":126},[10018],{"type":52,"value":2483},{"type":46,"tag":108,"props":10020,"children":10021},{"style":126},[10022],{"type":52,"value":3674},{"type":46,"tag":108,"props":10024,"children":10025},{"style":412},[10026],{"type":52,"value":2831},{"type":46,"tag":108,"props":10028,"children":10029},{"style":126},[10030],{"type":52,"value":129},{"type":46,"tag":108,"props":10032,"children":10033},{"class":110,"line":323},[10034,10038,10042,10046,10051,10055,10059,10063,10067,10071],{"type":46,"tag":108,"props":10035,"children":10036},{"style":2462},[10037],{"type":52,"value":9596},{"type":46,"tag":108,"props":10039,"children":10040},{"style":436},[10041],{"type":52,"value":1639},{"type":46,"tag":108,"props":10043,"children":10044},{"style":126},[10045],{"type":52,"value":315},{"type":46,"tag":108,"props":10047,"children":10048},{"style":308},[10049],{"type":52,"value":10050},"commit persists changes",{"type":46,"tag":108,"props":10052,"children":10053},{"style":126},[10054],{"type":52,"value":315},{"type":46,"tag":108,"props":10056,"children":10057},{"style":126},[10058],{"type":52,"value":2483},{"type":46,"tag":108,"props":10060,"children":10061},{"style":412},[10062],{"type":52,"value":9622},{"type":46,"tag":108,"props":10064,"children":10065},{"style":126},[10066],{"type":52,"value":3674},{"type":46,"tag":108,"props":10068,"children":10069},{"style":412},[10070],{"type":52,"value":2831},{"type":46,"tag":108,"props":10072,"children":10073},{"style":126},[10074],{"type":52,"value":129},{"type":46,"tag":108,"props":10076,"children":10077},{"class":110,"line":335},[10078,10082,10086,10090,10094,10098,10102,10106,10110],{"type":46,"tag":108,"props":10079,"children":10080},{"style":412},[10081],{"type":52,"value":4474},{"type":46,"tag":108,"props":10083,"children":10084},{"style":136},[10085],{"type":52,"value":9646},{"type":46,"tag":108,"props":10087,"children":10088},{"style":126},[10089],{"type":52,"value":426},{"type":46,"tag":108,"props":10091,"children":10092},{"style":126},[10093],{"type":52,"value":3470},{"type":46,"tag":108,"props":10095,"children":10096},{"style":2462},[10097],{"type":52,"value":4105},{"type":46,"tag":108,"props":10099,"children":10100},{"style":436},[10101],{"type":52,"value":1639},{"type":46,"tag":108,"props":10103,"children":10104},{"style":2462},[10105],{"type":52,"value":9667},{"type":46,"tag":108,"props":10107,"children":10108},{"style":436},[10109],{"type":52,"value":7400},{"type":46,"tag":108,"props":10111,"children":10112},{"style":126},[10113],{"type":52,"value":320},{"type":46,"tag":108,"props":10115,"children":10116},{"class":110,"line":348},[10117,10121,10126,10130,10134,10138,10142,10146,10150],{"type":46,"tag":108,"props":10118,"children":10119},{"style":412},[10120],{"type":52,"value":4474},{"type":46,"tag":108,"props":10122,"children":10123},{"style":136},[10124],{"type":52,"value":10125}," tx",{"type":46,"tag":108,"props":10127,"children":10128},{"style":126},[10129],{"type":52,"value":426},{"type":46,"tag":108,"props":10131,"children":10132},{"style":115},[10133],{"type":52,"value":2658},{"type":46,"tag":108,"props":10135,"children":10136},{"style":136},[10137],{"type":52,"value":9646},{"type":46,"tag":108,"props":10139,"children":10140},{"style":126},[10141],{"type":52,"value":2450},{"type":46,"tag":108,"props":10143,"children":10144},{"style":2462},[10145],{"type":52,"value":10010},{"type":46,"tag":108,"props":10147,"children":10148},{"style":436},[10149],{"type":52,"value":3929},{"type":46,"tag":108,"props":10151,"children":10152},{"style":126},[10153],{"type":52,"value":320},{"type":46,"tag":108,"props":10155,"children":10156},{"class":110,"line":361},[10157,10161,10165,10169,10173,10177],{"type":46,"tag":108,"props":10158,"children":10159},{"style":115},[10160],{"type":52,"value":5502},{"type":46,"tag":108,"props":10162,"children":10163},{"style":136},[10164],{"type":52,"value":10125},{"type":46,"tag":108,"props":10166,"children":10167},{"style":126},[10168],{"type":52,"value":2450},{"type":46,"tag":108,"props":10170,"children":10171},{"style":2462},[10172],{"type":52,"value":3577},{"type":46,"tag":108,"props":10174,"children":10175},{"style":436},[10176],{"type":52,"value":1639},{"type":46,"tag":108,"props":10178,"children":10179},{"style":126},[10180],{"type":52,"value":2937},{"type":46,"tag":108,"props":10182,"children":10183},{"class":110,"line":1238},[10184,10188,10192,10196,10201,10205],{"type":46,"tag":108,"props":10185,"children":10186},{"style":436},[10187],{"type":52,"value":9722},{"type":46,"tag":108,"props":10189,"children":10190},{"style":126},[10191],{"type":52,"value":98},{"type":46,"tag":108,"props":10193,"children":10194},{"style":126},[10195],{"type":52,"value":305},{"type":46,"tag":108,"props":10197,"children":10198},{"style":308},[10199],{"type":52,"value":10200},"INSERT INTO users (name) VALUES (?)",{"type":46,"tag":108,"props":10202,"children":10203},{"style":126},[10204],{"type":52,"value":315},{"type":46,"tag":108,"props":10206,"children":10207},{"style":126},[10208],{"type":52,"value":144},{"type":46,"tag":108,"props":10210,"children":10211},{"class":110,"line":1260},[10212,10216,10220,10225,10229,10234,10238,10242],{"type":46,"tag":108,"props":10213,"children":10214},{"style":436},[10215],{"type":52,"value":9751},{"type":46,"tag":108,"props":10217,"children":10218},{"style":126},[10219],{"type":52,"value":98},{"type":46,"tag":108,"props":10221,"children":10222},{"style":436},[10223],{"type":52,"value":10224}," [",{"type":46,"tag":108,"props":10226,"children":10227},{"style":126},[10228],{"type":52,"value":315},{"type":46,"tag":108,"props":10230,"children":10231},{"style":308},[10232],{"type":52,"value":10233},"Alice",{"type":46,"tag":108,"props":10235,"children":10236},{"style":126},[10237],{"type":52,"value":315},{"type":46,"tag":108,"props":10239,"children":10240},{"style":436},[10241],{"type":52,"value":7209},{"type":46,"tag":108,"props":10243,"children":10244},{"style":126},[10245],{"type":52,"value":144},{"type":46,"tag":108,"props":10247,"children":10248},{"class":110,"line":1282},[10249,10253,10257,10261],{"type":46,"tag":108,"props":10250,"children":10251},{"style":436},[10252],{"type":52,"value":9771},{"type":46,"tag":108,"props":10254,"children":10255},{"style":126},[10256],{"type":52,"value":98},{"type":46,"tag":108,"props":10258,"children":10259},{"style":436},[10260],{"type":52,"value":7048},{"type":46,"tag":108,"props":10262,"children":10263},{"style":126},[10264],{"type":52,"value":144},{"type":46,"tag":108,"props":10266,"children":10267},{"class":110,"line":1304},[10268,10272,10276],{"type":46,"tag":108,"props":10269,"children":10270},{"style":126},[10271],{"type":52,"value":2912},{"type":46,"tag":108,"props":10273,"children":10274},{"style":436},[10275],{"type":52,"value":2344},{"type":46,"tag":108,"props":10277,"children":10278},{"style":126},[10279],{"type":52,"value":320},{"type":46,"tag":108,"props":10281,"children":10282},{"class":110,"line":1326},[10283],{"type":46,"tag":108,"props":10284,"children":10285},{"style":456},[10286],{"type":52,"value":10287},"    \u002F\u002F Prisma sends COMMIT via executeRaw\n",{"type":46,"tag":108,"props":10289,"children":10290},{"class":110,"line":1348},[10291,10295,10299,10303,10307,10311,10316,10321,10325,10329,10333,10337,10341,10345,10349,10353,10357,10362,10366,10371,10375,10379],{"type":46,"tag":108,"props":10292,"children":10293},{"style":115},[10294],{"type":52,"value":5502},{"type":46,"tag":108,"props":10296,"children":10297},{"style":136},[10298],{"type":52,"value":10125},{"type":46,"tag":108,"props":10300,"children":10301},{"style":126},[10302],{"type":52,"value":2450},{"type":46,"tag":108,"props":10304,"children":10305},{"style":2462},[10306],{"type":52,"value":3577},{"type":46,"tag":108,"props":10308,"children":10309},{"style":436},[10310],{"type":52,"value":1639},{"type":46,"tag":108,"props":10312,"children":10313},{"style":126},[10314],{"type":52,"value":10315},"{",{"type":46,"tag":108,"props":10317,"children":10318},{"style":436},[10319],{"type":52,"value":10320}," sql",{"type":46,"tag":108,"props":10322,"children":10323},{"style":126},[10324],{"type":52,"value":98},{"type":46,"tag":108,"props":10326,"children":10327},{"style":126},[10328],{"type":52,"value":305},{"type":46,"tag":108,"props":10330,"children":10331},{"style":308},[10332],{"type":52,"value":3561},{"type":46,"tag":108,"props":10334,"children":10335},{"style":126},[10336],{"type":52,"value":315},{"type":46,"tag":108,"props":10338,"children":10339},{"style":126},[10340],{"type":52,"value":2483},{"type":46,"tag":108,"props":10342,"children":10343},{"style":436},[10344],{"type":52,"value":2436},{"type":46,"tag":108,"props":10346,"children":10347},{"style":126},[10348],{"type":52,"value":98},{"type":46,"tag":108,"props":10350,"children":10351},{"style":436},[10352],{"type":52,"value":7048},{"type":46,"tag":108,"props":10354,"children":10355},{"style":126},[10356],{"type":52,"value":2483},{"type":46,"tag":108,"props":10358,"children":10359},{"style":436},[10360],{"type":52,"value":10361}," argTypes",{"type":46,"tag":108,"props":10363,"children":10364},{"style":126},[10365],{"type":52,"value":98},{"type":46,"tag":108,"props":10367,"children":10368},{"style":436},[10369],{"type":52,"value":10370}," [] ",{"type":46,"tag":108,"props":10372,"children":10373},{"style":126},[10374],{"type":52,"value":295},{"type":46,"tag":108,"props":10376,"children":10377},{"style":436},[10378],{"type":52,"value":2344},{"type":46,"tag":108,"props":10380,"children":10381},{"style":126},[10382],{"type":52,"value":320},{"type":46,"tag":108,"props":10384,"children":10385},{"class":110,"line":1370},[10386,10390,10394,10398,10403,10407,10411],{"type":46,"tag":108,"props":10387,"children":10388},{"style":115},[10389],{"type":52,"value":5502},{"type":46,"tag":108,"props":10391,"children":10392},{"style":136},[10393],{"type":52,"value":10125},{"type":46,"tag":108,"props":10395,"children":10396},{"style":126},[10397],{"type":52,"value":2450},{"type":46,"tag":108,"props":10399,"children":10400},{"style":2462},[10401],{"type":52,"value":10402},"commit",{"type":46,"tag":108,"props":10404,"children":10405},{"style":436},[10406],{"type":52,"value":3929},{"type":46,"tag":108,"props":10408,"children":10409},{"style":126},[10410],{"type":52,"value":453},{"type":46,"tag":108,"props":10412,"children":10413},{"style":456},[10414],{"type":52,"value":10415}," \u002F\u002F lifecycle hook only\n",{"type":46,"tag":108,"props":10417,"children":10418},{"class":110,"line":1392},[10419],{"type":46,"tag":108,"props":10420,"children":10421},{"style":456},[10422],{"type":52,"value":10423},"    \u002F\u002F Verify data persisted\n",{"type":46,"tag":108,"props":10425,"children":10426},{"class":110,"line":1414},[10427,10431,10435],{"type":46,"tag":108,"props":10428,"children":10429},{"style":126},[10430],{"type":52,"value":9960},{"type":46,"tag":108,"props":10432,"children":10433},{"style":436},[10434],{"type":52,"value":2344},{"type":46,"tag":108,"props":10436,"children":10437},{"style":126},[10438],{"type":52,"value":320},{"type":46,"tag":108,"props":10440,"children":10441},{"class":110,"line":1436},[10442,10446,10450],{"type":46,"tag":108,"props":10443,"children":10444},{"style":126},[10445],{"type":52,"value":295},{"type":46,"tag":108,"props":10447,"children":10448},{"style":136},[10449],{"type":52,"value":2344},{"type":46,"tag":108,"props":10451,"children":10452},{"style":126},[10453],{"type":52,"value":320},{"type":46,"tag":394,"props":10455,"children":10457},{"id":10456},"e2e-tests-with-prismaclient",[10458],{"type":52,"value":10459},"E2E Tests (with PrismaClient)",{"type":46,"tag":55,"props":10461,"children":10462},{},[10463],{"type":52,"value":10464},"Test the full integration:",{"type":46,"tag":68,"props":10466,"children":10468},{"className":101,"code":10467,"language":14,"meta":77,"style":77},"describe(\"E2E\", () => {\n  let prisma: PrismaClient;\n\n  beforeEach(async () => {\n    const factory = new MyAdapterFactory({ url: TEST_DB_URL });\n    prisma = new PrismaClient({ adapter: factory });\n  });\n\n  test(\"CRUD operations\", async () => {\n    const user = await prisma.user.create({ data: { name: \"Alice\" } });\n    expect(user.id).toBeGreaterThan(0);\n\n    const found = await prisma.user.findUnique({ where: { id: user.id } });\n    expect(found?.name).toBe(\"Alice\");\n  });\n\n  test(\"transactions roll back on error\", async () => {\n    await expect(\n      prisma.$transaction(async (tx) => {\n        await tx.user.create({ data: { name: \"Bob\" } });\n        throw new Error(\"Rollback!\");\n      }),\n    ).rejects.toThrow();\n\n    expect(await prisma.user.count()).toBe(0);\n  });\n});\n",[10469],{"type":46,"tag":75,"props":10470,"children":10471},{"__ignoreMap":77},[10472,10512,10538,10545,10574,10631,10683,10698,10705,10749,10849,10901,10908,11006,11066,11081,11088,11132,11148,11194,11278,11319,11334,11368,11375,11440,11455],{"type":46,"tag":108,"props":10473,"children":10474},{"class":110,"line":111},[10475,10479,10483,10487,10492,10496,10500,10504,10508],{"type":46,"tag":108,"props":10476,"children":10477},{"style":2462},[10478],{"type":52,"value":9555},{"type":46,"tag":108,"props":10480,"children":10481},{"style":136},[10482],{"type":52,"value":1639},{"type":46,"tag":108,"props":10484,"children":10485},{"style":126},[10486],{"type":52,"value":315},{"type":46,"tag":108,"props":10488,"children":10489},{"style":308},[10490],{"type":52,"value":10491},"E2E",{"type":46,"tag":108,"props":10493,"children":10494},{"style":126},[10495],{"type":52,"value":315},{"type":46,"tag":108,"props":10497,"children":10498},{"style":126},[10499],{"type":52,"value":2483},{"type":46,"tag":108,"props":10501,"children":10502},{"style":126},[10503],{"type":52,"value":3674},{"type":46,"tag":108,"props":10505,"children":10506},{"style":412},[10507],{"type":52,"value":2831},{"type":46,"tag":108,"props":10509,"children":10510},{"style":126},[10511],{"type":52,"value":129},{"type":46,"tag":108,"props":10513,"children":10514},{"class":110,"line":132},[10515,10520,10525,10529,10534],{"type":46,"tag":108,"props":10516,"children":10517},{"style":412},[10518],{"type":52,"value":10519},"  let",{"type":46,"tag":108,"props":10521,"children":10522},{"style":136},[10523],{"type":52,"value":10524}," prisma",{"type":46,"tag":108,"props":10526,"children":10527},{"style":126},[10528],{"type":52,"value":98},{"type":46,"tag":108,"props":10530,"children":10531},{"style":418},[10532],{"type":52,"value":10533}," PrismaClient",{"type":46,"tag":108,"props":10535,"children":10536},{"style":126},[10537],{"type":52,"value":320},{"type":46,"tag":108,"props":10539,"children":10540},{"class":110,"line":30},[10541],{"type":46,"tag":108,"props":10542,"children":10543},{"emptyLinePlaceholder":544},[10544],{"type":52,"value":547},{"type":46,"tag":108,"props":10546,"children":10547},{"class":110,"line":159},[10548,10553,10557,10562,10566,10570],{"type":46,"tag":108,"props":10549,"children":10550},{"style":2462},[10551],{"type":52,"value":10552},"  beforeEach",{"type":46,"tag":108,"props":10554,"children":10555},{"style":436},[10556],{"type":52,"value":1639},{"type":46,"tag":108,"props":10558,"children":10559},{"style":412},[10560],{"type":52,"value":10561},"async",{"type":46,"tag":108,"props":10563,"children":10564},{"style":126},[10565],{"type":52,"value":3674},{"type":46,"tag":108,"props":10567,"children":10568},{"style":412},[10569],{"type":52,"value":2831},{"type":46,"tag":108,"props":10571,"children":10572},{"style":126},[10573],{"type":52,"value":129},{"type":46,"tag":108,"props":10575,"children":10576},{"class":110,"line":172},[10577,10581,10586,10590,10594,10598,10602,10606,10610,10614,10619,10623,10627],{"type":46,"tag":108,"props":10578,"children":10579},{"style":412},[10580],{"type":52,"value":4474},{"type":46,"tag":108,"props":10582,"children":10583},{"style":136},[10584],{"type":52,"value":10585}," factory",{"type":46,"tag":108,"props":10587,"children":10588},{"style":126},[10589],{"type":52,"value":426},{"type":46,"tag":108,"props":10591,"children":10592},{"style":126},[10593],{"type":52,"value":3470},{"type":46,"tag":108,"props":10595,"children":10596},{"style":2462},[10597],{"type":52,"value":5690},{"type":46,"tag":108,"props":10599,"children":10600},{"style":436},[10601],{"type":52,"value":1639},{"type":46,"tag":108,"props":10603,"children":10604},{"style":126},[10605],{"type":52,"value":10315},{"type":46,"tag":108,"props":10607,"children":10608},{"style":436},[10609],{"type":52,"value":6032},{"type":46,"tag":108,"props":10611,"children":10612},{"style":126},[10613],{"type":52,"value":98},{"type":46,"tag":108,"props":10615,"children":10616},{"style":136},[10617],{"type":52,"value":10618}," TEST_DB_URL",{"type":46,"tag":108,"props":10620,"children":10621},{"style":126},[10622],{"type":52,"value":2605},{"type":46,"tag":108,"props":10624,"children":10625},{"style":436},[10626],{"type":52,"value":2344},{"type":46,"tag":108,"props":10628,"children":10629},{"style":126},[10630],{"type":52,"value":320},{"type":46,"tag":108,"props":10632,"children":10633},{"class":110,"line":185},[10634,10639,10643,10647,10651,10655,10659,10663,10667,10671,10675,10679],{"type":46,"tag":108,"props":10635,"children":10636},{"style":136},[10637],{"type":52,"value":10638},"    prisma",{"type":46,"tag":108,"props":10640,"children":10641},{"style":126},[10642],{"type":52,"value":426},{"type":46,"tag":108,"props":10644,"children":10645},{"style":126},[10646],{"type":52,"value":3470},{"type":46,"tag":108,"props":10648,"children":10649},{"style":2462},[10650],{"type":52,"value":10533},{"type":46,"tag":108,"props":10652,"children":10653},{"style":436},[10654],{"type":52,"value":1639},{"type":46,"tag":108,"props":10656,"children":10657},{"style":126},[10658],{"type":52,"value":10315},{"type":46,"tag":108,"props":10660,"children":10661},{"style":436},[10662],{"type":52,"value":9646},{"type":46,"tag":108,"props":10664,"children":10665},{"style":126},[10666],{"type":52,"value":98},{"type":46,"tag":108,"props":10668,"children":10669},{"style":136},[10670],{"type":52,"value":10585},{"type":46,"tag":108,"props":10672,"children":10673},{"style":126},[10674],{"type":52,"value":2605},{"type":46,"tag":108,"props":10676,"children":10677},{"style":436},[10678],{"type":52,"value":2344},{"type":46,"tag":108,"props":10680,"children":10681},{"style":126},[10682],{"type":52,"value":320},{"type":46,"tag":108,"props":10684,"children":10685},{"class":110,"line":198},[10686,10690,10694],{"type":46,"tag":108,"props":10687,"children":10688},{"style":126},[10689],{"type":52,"value":9960},{"type":46,"tag":108,"props":10691,"children":10692},{"style":436},[10693],{"type":52,"value":2344},{"type":46,"tag":108,"props":10695,"children":10696},{"style":126},[10697],{"type":52,"value":320},{"type":46,"tag":108,"props":10699,"children":10700},{"class":110,"line":211},[10701],{"type":46,"tag":108,"props":10702,"children":10703},{"emptyLinePlaceholder":544},[10704],{"type":52,"value":547},{"type":46,"tag":108,"props":10706,"children":10707},{"class":110,"line":224},[10708,10712,10716,10720,10725,10729,10733,10737,10741,10745],{"type":46,"tag":108,"props":10709,"children":10710},{"style":2462},[10711],{"type":52,"value":9596},{"type":46,"tag":108,"props":10713,"children":10714},{"style":436},[10715],{"type":52,"value":1639},{"type":46,"tag":108,"props":10717,"children":10718},{"style":126},[10719],{"type":52,"value":315},{"type":46,"tag":108,"props":10721,"children":10722},{"style":308},[10723],{"type":52,"value":10724},"CRUD operations",{"type":46,"tag":108,"props":10726,"children":10727},{"style":126},[10728],{"type":52,"value":315},{"type":46,"tag":108,"props":10730,"children":10731},{"style":126},[10732],{"type":52,"value":2483},{"type":46,"tag":108,"props":10734,"children":10735},{"style":412},[10736],{"type":52,"value":9622},{"type":46,"tag":108,"props":10738,"children":10739},{"style":126},[10740],{"type":52,"value":3674},{"type":46,"tag":108,"props":10742,"children":10743},{"style":412},[10744],{"type":52,"value":2831},{"type":46,"tag":108,"props":10746,"children":10747},{"style":126},[10748],{"type":52,"value":129},{"type":46,"tag":108,"props":10750,"children":10751},{"class":110,"line":237},[10752,10756,10761,10765,10769,10773,10777,10782,10786,10791,10795,10799,10804,10808,10812,10817,10821,10825,10829,10833,10837,10841,10845],{"type":46,"tag":108,"props":10753,"children":10754},{"style":412},[10755],{"type":52,"value":4474},{"type":46,"tag":108,"props":10757,"children":10758},{"style":136},[10759],{"type":52,"value":10760}," user",{"type":46,"tag":108,"props":10762,"children":10763},{"style":126},[10764],{"type":52,"value":426},{"type":46,"tag":108,"props":10766,"children":10767},{"style":115},[10768],{"type":52,"value":2658},{"type":46,"tag":108,"props":10770,"children":10771},{"style":136},[10772],{"type":52,"value":10524},{"type":46,"tag":108,"props":10774,"children":10775},{"style":126},[10776],{"type":52,"value":2450},{"type":46,"tag":108,"props":10778,"children":10779},{"style":136},[10780],{"type":52,"value":10781},"user",{"type":46,"tag":108,"props":10783,"children":10784},{"style":126},[10785],{"type":52,"value":2450},{"type":46,"tag":108,"props":10787,"children":10788},{"style":2462},[10789],{"type":52,"value":10790},"create",{"type":46,"tag":108,"props":10792,"children":10793},{"style":436},[10794],{"type":52,"value":1639},{"type":46,"tag":108,"props":10796,"children":10797},{"style":126},[10798],{"type":52,"value":10315},{"type":46,"tag":108,"props":10800,"children":10801},{"style":436},[10802],{"type":52,"value":10803}," data",{"type":46,"tag":108,"props":10805,"children":10806},{"style":126},[10807],{"type":52,"value":98},{"type":46,"tag":108,"props":10809,"children":10810},{"style":126},[10811],{"type":52,"value":1934},{"type":46,"tag":108,"props":10813,"children":10814},{"style":436},[10815],{"type":52,"value":10816}," name",{"type":46,"tag":108,"props":10818,"children":10819},{"style":126},[10820],{"type":52,"value":98},{"type":46,"tag":108,"props":10822,"children":10823},{"style":126},[10824],{"type":52,"value":305},{"type":46,"tag":108,"props":10826,"children":10827},{"style":308},[10828],{"type":52,"value":10233},{"type":46,"tag":108,"props":10830,"children":10831},{"style":126},[10832],{"type":52,"value":315},{"type":46,"tag":108,"props":10834,"children":10835},{"style":126},[10836],{"type":52,"value":2605},{"type":46,"tag":108,"props":10838,"children":10839},{"style":126},[10840],{"type":52,"value":2605},{"type":46,"tag":108,"props":10842,"children":10843},{"style":436},[10844],{"type":52,"value":2344},{"type":46,"tag":108,"props":10846,"children":10847},{"style":126},[10848],{"type":52,"value":320},{"type":46,"tag":108,"props":10850,"children":10851},{"class":110,"line":250},[10852,10856,10860,10864,10868,10872,10876,10880,10885,10889,10893,10897],{"type":46,"tag":108,"props":10853,"children":10854},{"style":2462},[10855],{"type":52,"value":9806},{"type":46,"tag":108,"props":10857,"children":10858},{"style":436},[10859],{"type":52,"value":1639},{"type":46,"tag":108,"props":10861,"children":10862},{"style":136},[10863],{"type":52,"value":10781},{"type":46,"tag":108,"props":10865,"children":10866},{"style":126},[10867],{"type":52,"value":2450},{"type":46,"tag":108,"props":10869,"children":10870},{"style":136},[10871],{"type":52,"value":9851},{"type":46,"tag":108,"props":10873,"children":10874},{"style":436},[10875],{"type":52,"value":2344},{"type":46,"tag":108,"props":10877,"children":10878},{"style":126},[10879],{"type":52,"value":2450},{"type":46,"tag":108,"props":10881,"children":10882},{"style":2462},[10883],{"type":52,"value":10884},"toBeGreaterThan",{"type":46,"tag":108,"props":10886,"children":10887},{"style":436},[10888],{"type":52,"value":1639},{"type":46,"tag":108,"props":10890,"children":10891},{"style":892},[10892],{"type":52,"value":9913},{"type":46,"tag":108,"props":10894,"children":10895},{"style":436},[10896],{"type":52,"value":2344},{"type":46,"tag":108,"props":10898,"children":10899},{"style":126},[10900],{"type":52,"value":320},{"type":46,"tag":108,"props":10902,"children":10903},{"class":110,"line":263},[10904],{"type":46,"tag":108,"props":10905,"children":10906},{"emptyLinePlaceholder":544},[10907],{"type":52,"value":547},{"type":46,"tag":108,"props":10909,"children":10910},{"class":110,"line":276},[10911,10915,10920,10924,10928,10932,10936,10940,10944,10949,10953,10957,10962,10966,10970,10974,10978,10982,10986,10990,10994,10998,11002],{"type":46,"tag":108,"props":10912,"children":10913},{"style":412},[10914],{"type":52,"value":4474},{"type":46,"tag":108,"props":10916,"children":10917},{"style":136},[10918],{"type":52,"value":10919}," found",{"type":46,"tag":108,"props":10921,"children":10922},{"style":126},[10923],{"type":52,"value":426},{"type":46,"tag":108,"props":10925,"children":10926},{"style":115},[10927],{"type":52,"value":2658},{"type":46,"tag":108,"props":10929,"children":10930},{"style":136},[10931],{"type":52,"value":10524},{"type":46,"tag":108,"props":10933,"children":10934},{"style":126},[10935],{"type":52,"value":2450},{"type":46,"tag":108,"props":10937,"children":10938},{"style":136},[10939],{"type":52,"value":10781},{"type":46,"tag":108,"props":10941,"children":10942},{"style":126},[10943],{"type":52,"value":2450},{"type":46,"tag":108,"props":10945,"children":10946},{"style":2462},[10947],{"type":52,"value":10948},"findUnique",{"type":46,"tag":108,"props":10950,"children":10951},{"style":436},[10952],{"type":52,"value":1639},{"type":46,"tag":108,"props":10954,"children":10955},{"style":126},[10956],{"type":52,"value":10315},{"type":46,"tag":108,"props":10958,"children":10959},{"style":436},[10960],{"type":52,"value":10961}," where",{"type":46,"tag":108,"props":10963,"children":10964},{"style":126},[10965],{"type":52,"value":98},{"type":46,"tag":108,"props":10967,"children":10968},{"style":126},[10969],{"type":52,"value":1934},{"type":46,"tag":108,"props":10971,"children":10972},{"style":436},[10973],{"type":52,"value":9291},{"type":46,"tag":108,"props":10975,"children":10976},{"style":126},[10977],{"type":52,"value":98},{"type":46,"tag":108,"props":10979,"children":10980},{"style":136},[10981],{"type":52,"value":10760},{"type":46,"tag":108,"props":10983,"children":10984},{"style":126},[10985],{"type":52,"value":2450},{"type":46,"tag":108,"props":10987,"children":10988},{"style":136},[10989],{"type":52,"value":9851},{"type":46,"tag":108,"props":10991,"children":10992},{"style":126},[10993],{"type":52,"value":2605},{"type":46,"tag":108,"props":10995,"children":10996},{"style":126},[10997],{"type":52,"value":2605},{"type":46,"tag":108,"props":10999,"children":11000},{"style":436},[11001],{"type":52,"value":2344},{"type":46,"tag":108,"props":11003,"children":11004},{"style":126},[11005],{"type":52,"value":320},{"type":46,"tag":108,"props":11007,"children":11008},{"class":110,"line":289},[11009,11013,11017,11022,11026,11030,11034,11038,11042,11046,11050,11054,11058,11062],{"type":46,"tag":108,"props":11010,"children":11011},{"style":2462},[11012],{"type":52,"value":9806},{"type":46,"tag":108,"props":11014,"children":11015},{"style":436},[11016],{"type":52,"value":1639},{"type":46,"tag":108,"props":11018,"children":11019},{"style":136},[11020],{"type":52,"value":11021},"found",{"type":46,"tag":108,"props":11023,"children":11024},{"style":126},[11025],{"type":52,"value":6049},{"type":46,"tag":108,"props":11027,"children":11028},{"style":136},[11029],{"type":52,"value":8861},{"type":46,"tag":108,"props":11031,"children":11032},{"style":436},[11033],{"type":52,"value":2344},{"type":46,"tag":108,"props":11035,"children":11036},{"style":126},[11037],{"type":52,"value":2450},{"type":46,"tag":108,"props":11039,"children":11040},{"style":2462},[11041],{"type":52,"value":9926},{"type":46,"tag":108,"props":11043,"children":11044},{"style":436},[11045],{"type":52,"value":1639},{"type":46,"tag":108,"props":11047,"children":11048},{"style":126},[11049],{"type":52,"value":315},{"type":46,"tag":108,"props":11051,"children":11052},{"style":308},[11053],{"type":52,"value":10233},{"type":46,"tag":108,"props":11055,"children":11056},{"style":126},[11057],{"type":52,"value":315},{"type":46,"tag":108,"props":11059,"children":11060},{"style":436},[11061],{"type":52,"value":2344},{"type":46,"tag":108,"props":11063,"children":11064},{"style":126},[11065],{"type":52,"value":320},{"type":46,"tag":108,"props":11067,"children":11068},{"class":110,"line":323},[11069,11073,11077],{"type":46,"tag":108,"props":11070,"children":11071},{"style":126},[11072],{"type":52,"value":9960},{"type":46,"tag":108,"props":11074,"children":11075},{"style":436},[11076],{"type":52,"value":2344},{"type":46,"tag":108,"props":11078,"children":11079},{"style":126},[11080],{"type":52,"value":320},{"type":46,"tag":108,"props":11082,"children":11083},{"class":110,"line":335},[11084],{"type":46,"tag":108,"props":11085,"children":11086},{"emptyLinePlaceholder":544},[11087],{"type":52,"value":547},{"type":46,"tag":108,"props":11089,"children":11090},{"class":110,"line":348},[11091,11095,11099,11103,11108,11112,11116,11120,11124,11128],{"type":46,"tag":108,"props":11092,"children":11093},{"style":2462},[11094],{"type":52,"value":9596},{"type":46,"tag":108,"props":11096,"children":11097},{"style":436},[11098],{"type":52,"value":1639},{"type":46,"tag":108,"props":11100,"children":11101},{"style":126},[11102],{"type":52,"value":315},{"type":46,"tag":108,"props":11104,"children":11105},{"style":308},[11106],{"type":52,"value":11107},"transactions roll back on error",{"type":46,"tag":108,"props":11109,"children":11110},{"style":126},[11111],{"type":52,"value":315},{"type":46,"tag":108,"props":11113,"children":11114},{"style":126},[11115],{"type":52,"value":2483},{"type":46,"tag":108,"props":11117,"children":11118},{"style":412},[11119],{"type":52,"value":9622},{"type":46,"tag":108,"props":11121,"children":11122},{"style":126},[11123],{"type":52,"value":3674},{"type":46,"tag":108,"props":11125,"children":11126},{"style":412},[11127],{"type":52,"value":2831},{"type":46,"tag":108,"props":11129,"children":11130},{"style":126},[11131],{"type":52,"value":129},{"type":46,"tag":108,"props":11133,"children":11134},{"class":110,"line":361},[11135,11139,11144],{"type":46,"tag":108,"props":11136,"children":11137},{"style":115},[11138],{"type":52,"value":5502},{"type":46,"tag":108,"props":11140,"children":11141},{"style":2462},[11142],{"type":52,"value":11143}," expect",{"type":46,"tag":108,"props":11145,"children":11146},{"style":436},[11147],{"type":52,"value":3706},{"type":46,"tag":108,"props":11149,"children":11150},{"class":110,"line":1238},[11151,11156,11160,11165,11169,11173,11177,11182,11186,11190],{"type":46,"tag":108,"props":11152,"children":11153},{"style":136},[11154],{"type":52,"value":11155},"      prisma",{"type":46,"tag":108,"props":11157,"children":11158},{"style":126},[11159],{"type":52,"value":2450},{"type":46,"tag":108,"props":11161,"children":11162},{"style":2462},[11163],{"type":52,"value":11164},"$transaction",{"type":46,"tag":108,"props":11166,"children":11167},{"style":436},[11168],{"type":52,"value":1639},{"type":46,"tag":108,"props":11170,"children":11171},{"style":412},[11172],{"type":52,"value":10561},{"type":46,"tag":108,"props":11174,"children":11175},{"style":126},[11176],{"type":52,"value":2922},{"type":46,"tag":108,"props":11178,"children":11179},{"style":1642},[11180],{"type":52,"value":11181},"tx",{"type":46,"tag":108,"props":11183,"children":11184},{"style":126},[11185],{"type":52,"value":2344},{"type":46,"tag":108,"props":11187,"children":11188},{"style":412},[11189],{"type":52,"value":2831},{"type":46,"tag":108,"props":11191,"children":11192},{"style":126},[11193],{"type":52,"value":129},{"type":46,"tag":108,"props":11195,"children":11196},{"class":110,"line":1260},[11197,11201,11205,11209,11213,11217,11221,11225,11229,11233,11237,11241,11245,11249,11253,11258,11262,11266,11270,11274],{"type":46,"tag":108,"props":11198,"children":11199},{"style":115},[11200],{"type":52,"value":5036},{"type":46,"tag":108,"props":11202,"children":11203},{"style":136},[11204],{"type":52,"value":10125},{"type":46,"tag":108,"props":11206,"children":11207},{"style":126},[11208],{"type":52,"value":2450},{"type":46,"tag":108,"props":11210,"children":11211},{"style":136},[11212],{"type":52,"value":10781},{"type":46,"tag":108,"props":11214,"children":11215},{"style":126},[11216],{"type":52,"value":2450},{"type":46,"tag":108,"props":11218,"children":11219},{"style":2462},[11220],{"type":52,"value":10790},{"type":46,"tag":108,"props":11222,"children":11223},{"style":436},[11224],{"type":52,"value":1639},{"type":46,"tag":108,"props":11226,"children":11227},{"style":126},[11228],{"type":52,"value":10315},{"type":46,"tag":108,"props":11230,"children":11231},{"style":436},[11232],{"type":52,"value":10803},{"type":46,"tag":108,"props":11234,"children":11235},{"style":126},[11236],{"type":52,"value":98},{"type":46,"tag":108,"props":11238,"children":11239},{"style":126},[11240],{"type":52,"value":1934},{"type":46,"tag":108,"props":11242,"children":11243},{"style":436},[11244],{"type":52,"value":10816},{"type":46,"tag":108,"props":11246,"children":11247},{"style":126},[11248],{"type":52,"value":98},{"type":46,"tag":108,"props":11250,"children":11251},{"style":126},[11252],{"type":52,"value":305},{"type":46,"tag":108,"props":11254,"children":11255},{"style":308},[11256],{"type":52,"value":11257},"Bob",{"type":46,"tag":108,"props":11259,"children":11260},{"style":126},[11261],{"type":52,"value":315},{"type":46,"tag":108,"props":11263,"children":11264},{"style":126},[11265],{"type":52,"value":2605},{"type":46,"tag":108,"props":11267,"children":11268},{"style":126},[11269],{"type":52,"value":2605},{"type":46,"tag":108,"props":11271,"children":11272},{"style":436},[11273],{"type":52,"value":2344},{"type":46,"tag":108,"props":11275,"children":11276},{"style":126},[11277],{"type":52,"value":320},{"type":46,"tag":108,"props":11279,"children":11280},{"class":110,"line":1282},[11281,11286,11290,11294,11298,11302,11307,11311,11315],{"type":46,"tag":108,"props":11282,"children":11283},{"style":115},[11284],{"type":52,"value":11285},"        throw",{"type":46,"tag":108,"props":11287,"children":11288},{"style":126},[11289],{"type":52,"value":3470},{"type":46,"tag":108,"props":11291,"children":11292},{"style":2462},[11293],{"type":52,"value":8352},{"type":46,"tag":108,"props":11295,"children":11296},{"style":436},[11297],{"type":52,"value":1639},{"type":46,"tag":108,"props":11299,"children":11300},{"style":126},[11301],{"type":52,"value":315},{"type":46,"tag":108,"props":11303,"children":11304},{"style":308},[11305],{"type":52,"value":11306},"Rollback!",{"type":46,"tag":108,"props":11308,"children":11309},{"style":126},[11310],{"type":52,"value":315},{"type":46,"tag":108,"props":11312,"children":11313},{"style":436},[11314],{"type":52,"value":2344},{"type":46,"tag":108,"props":11316,"children":11317},{"style":126},[11318],{"type":52,"value":320},{"type":46,"tag":108,"props":11320,"children":11321},{"class":110,"line":1304},[11322,11326,11330],{"type":46,"tag":108,"props":11323,"children":11324},{"style":126},[11325],{"type":52,"value":4759},{"type":46,"tag":108,"props":11327,"children":11328},{"style":436},[11329],{"type":52,"value":2344},{"type":46,"tag":108,"props":11331,"children":11332},{"style":126},[11333],{"type":52,"value":144},{"type":46,"tag":108,"props":11335,"children":11336},{"class":110,"line":1326},[11337,11342,11346,11351,11355,11360,11364],{"type":46,"tag":108,"props":11338,"children":11339},{"style":436},[11340],{"type":52,"value":11341},"    )",{"type":46,"tag":108,"props":11343,"children":11344},{"style":126},[11345],{"type":52,"value":2450},{"type":46,"tag":108,"props":11347,"children":11348},{"style":136},[11349],{"type":52,"value":11350},"rejects",{"type":46,"tag":108,"props":11352,"children":11353},{"style":126},[11354],{"type":52,"value":2450},{"type":46,"tag":108,"props":11356,"children":11357},{"style":2462},[11358],{"type":52,"value":11359},"toThrow",{"type":46,"tag":108,"props":11361,"children":11362},{"style":436},[11363],{"type":52,"value":3929},{"type":46,"tag":108,"props":11365,"children":11366},{"style":126},[11367],{"type":52,"value":320},{"type":46,"tag":108,"props":11369,"children":11370},{"class":110,"line":1348},[11371],{"type":46,"tag":108,"props":11372,"children":11373},{"emptyLinePlaceholder":544},[11374],{"type":52,"value":547},{"type":46,"tag":108,"props":11376,"children":11377},{"class":110,"line":1370},[11378,11382,11386,11391,11395,11399,11403,11407,11412,11416,11420,11424,11428,11432,11436],{"type":46,"tag":108,"props":11379,"children":11380},{"style":2462},[11381],{"type":52,"value":9806},{"type":46,"tag":108,"props":11383,"children":11384},{"style":436},[11385],{"type":52,"value":1639},{"type":46,"tag":108,"props":11387,"children":11388},{"style":115},[11389],{"type":52,"value":11390},"await",{"type":46,"tag":108,"props":11392,"children":11393},{"style":136},[11394],{"type":52,"value":10524},{"type":46,"tag":108,"props":11396,"children":11397},{"style":126},[11398],{"type":52,"value":2450},{"type":46,"tag":108,"props":11400,"children":11401},{"style":136},[11402],{"type":52,"value":10781},{"type":46,"tag":108,"props":11404,"children":11405},{"style":126},[11406],{"type":52,"value":2450},{"type":46,"tag":108,"props":11408,"children":11409},{"style":2462},[11410],{"type":52,"value":11411},"count",{"type":46,"tag":108,"props":11413,"children":11414},{"style":436},[11415],{"type":52,"value":7400},{"type":46,"tag":108,"props":11417,"children":11418},{"style":126},[11419],{"type":52,"value":2450},{"type":46,"tag":108,"props":11421,"children":11422},{"style":2462},[11423],{"type":52,"value":9926},{"type":46,"tag":108,"props":11425,"children":11426},{"style":436},[11427],{"type":52,"value":1639},{"type":46,"tag":108,"props":11429,"children":11430},{"style":892},[11431],{"type":52,"value":9913},{"type":46,"tag":108,"props":11433,"children":11434},{"style":436},[11435],{"type":52,"value":2344},{"type":46,"tag":108,"props":11437,"children":11438},{"style":126},[11439],{"type":52,"value":320},{"type":46,"tag":108,"props":11441,"children":11442},{"class":110,"line":1392},[11443,11447,11451],{"type":46,"tag":108,"props":11444,"children":11445},{"style":126},[11446],{"type":52,"value":9960},{"type":46,"tag":108,"props":11448,"children":11449},{"style":436},[11450],{"type":52,"value":2344},{"type":46,"tag":108,"props":11452,"children":11453},{"style":126},[11454],{"type":52,"value":320},{"type":46,"tag":108,"props":11456,"children":11457},{"class":110,"line":1414},[11458,11462,11466],{"type":46,"tag":108,"props":11459,"children":11460},{"style":126},[11461],{"type":52,"value":295},{"type":46,"tag":108,"props":11463,"children":11464},{"style":136},[11465],{"type":52,"value":2344},{"type":46,"tag":108,"props":11467,"children":11468},{"style":126},[11469],{"type":52,"value":320},{"type":46,"tag":61,"props":11471,"children":11473},{"id":11472},"usage-example",[11474],{"type":52,"value":11475},"Usage Example",{"type":46,"tag":68,"props":11477,"children":11479},{"className":101,"code":11478,"language":14,"meta":77,"style":77},"import { PrismaClient } from \".\u002Fgenerated\u002Fprisma\u002Fclient\";\nimport { MyAdapterFactory } from \"@my-org\u002Fadapter-mydb\";\n\nconst factory = new MyAdapterFactory({\n  url: process.env.DATABASE_URL!,\n});\n\nconst prisma = new PrismaClient({ adapter: factory });\n\n\u002F\u002F Use prisma normally\nconst users = await prisma.user.findMany();\n",[11480],{"type":46,"tag":75,"props":11481,"children":11482},{"__ignoreMap":77},[11483,11523,11562,11569,11601,11640,11655,11662,11718,11725,11733],{"type":46,"tag":108,"props":11484,"children":11485},{"class":110,"line":111},[11486,11490,11494,11498,11502,11506,11510,11515,11519],{"type":46,"tag":108,"props":11487,"children":11488},{"style":115},[11489],{"type":52,"value":118},{"type":46,"tag":108,"props":11491,"children":11492},{"style":126},[11493],{"type":52,"value":1934},{"type":46,"tag":108,"props":11495,"children":11496},{"style":136},[11497],{"type":52,"value":10533},{"type":46,"tag":108,"props":11499,"children":11500},{"style":126},[11501],{"type":52,"value":2605},{"type":46,"tag":108,"props":11503,"children":11504},{"style":115},[11505],{"type":52,"value":300},{"type":46,"tag":108,"props":11507,"children":11508},{"style":126},[11509],{"type":52,"value":305},{"type":46,"tag":108,"props":11511,"children":11512},{"style":308},[11513],{"type":52,"value":11514},".\u002Fgenerated\u002Fprisma\u002Fclient",{"type":46,"tag":108,"props":11516,"children":11517},{"style":126},[11518],{"type":52,"value":315},{"type":46,"tag":108,"props":11520,"children":11521},{"style":126},[11522],{"type":52,"value":320},{"type":46,"tag":108,"props":11524,"children":11525},{"class":110,"line":132},[11526,11530,11534,11538,11542,11546,11550,11554,11558],{"type":46,"tag":108,"props":11527,"children":11528},{"style":115},[11529],{"type":52,"value":118},{"type":46,"tag":108,"props":11531,"children":11532},{"style":126},[11533],{"type":52,"value":1934},{"type":46,"tag":108,"props":11535,"children":11536},{"style":136},[11537],{"type":52,"value":5690},{"type":46,"tag":108,"props":11539,"children":11540},{"style":126},[11541],{"type":52,"value":2605},{"type":46,"tag":108,"props":11543,"children":11544},{"style":115},[11545],{"type":52,"value":300},{"type":46,"tag":108,"props":11547,"children":11548},{"style":126},[11549],{"type":52,"value":305},{"type":46,"tag":108,"props":11551,"children":11552},{"style":308},[11553],{"type":52,"value":2280},{"type":46,"tag":108,"props":11555,"children":11556},{"style":126},[11557],{"type":52,"value":315},{"type":46,"tag":108,"props":11559,"children":11560},{"style":126},[11561],{"type":52,"value":320},{"type":46,"tag":108,"props":11563,"children":11564},{"class":110,"line":30},[11565],{"type":46,"tag":108,"props":11566,"children":11567},{"emptyLinePlaceholder":544},[11568],{"type":52,"value":547},{"type":46,"tag":108,"props":11570,"children":11571},{"class":110,"line":159},[11572,11576,11581,11585,11589,11593,11597],{"type":46,"tag":108,"props":11573,"children":11574},{"style":412},[11575],{"type":52,"value":863},{"type":46,"tag":108,"props":11577,"children":11578},{"style":136},[11579],{"type":52,"value":11580}," factory ",{"type":46,"tag":108,"props":11582,"children":11583},{"style":126},[11584],{"type":52,"value":873},{"type":46,"tag":108,"props":11586,"children":11587},{"style":126},[11588],{"type":52,"value":3470},{"type":46,"tag":108,"props":11590,"children":11591},{"style":2462},[11592],{"type":52,"value":5690},{"type":46,"tag":108,"props":11594,"children":11595},{"style":136},[11596],{"type":52,"value":1639},{"type":46,"tag":108,"props":11598,"children":11599},{"style":126},[11600],{"type":52,"value":2937},{"type":46,"tag":108,"props":11602,"children":11603},{"class":110,"line":172},[11604,11608,11612,11617,11621,11626,11630,11635],{"type":46,"tag":108,"props":11605,"children":11606},{"style":436},[11607],{"type":52,"value":5589},{"type":46,"tag":108,"props":11609,"children":11610},{"style":126},[11611],{"type":52,"value":98},{"type":46,"tag":108,"props":11613,"children":11614},{"style":136},[11615],{"type":52,"value":11616}," process",{"type":46,"tag":108,"props":11618,"children":11619},{"style":126},[11620],{"type":52,"value":2450},{"type":46,"tag":108,"props":11622,"children":11623},{"style":136},[11624],{"type":52,"value":11625},"env",{"type":46,"tag":108,"props":11627,"children":11628},{"style":126},[11629],{"type":52,"value":2450},{"type":46,"tag":108,"props":11631,"children":11632},{"style":136},[11633],{"type":52,"value":11634},"DATABASE_URL",{"type":46,"tag":108,"props":11636,"children":11637},{"style":126},[11638],{"type":52,"value":11639},"!,\n",{"type":46,"tag":108,"props":11641,"children":11642},{"class":110,"line":185},[11643,11647,11651],{"type":46,"tag":108,"props":11644,"children":11645},{"style":126},[11646],{"type":52,"value":295},{"type":46,"tag":108,"props":11648,"children":11649},{"style":136},[11650],{"type":52,"value":2344},{"type":46,"tag":108,"props":11652,"children":11653},{"style":126},[11654],{"type":52,"value":320},{"type":46,"tag":108,"props":11656,"children":11657},{"class":110,"line":198},[11658],{"type":46,"tag":108,"props":11659,"children":11660},{"emptyLinePlaceholder":544},[11661],{"type":52,"value":547},{"type":46,"tag":108,"props":11663,"children":11664},{"class":110,"line":211},[11665,11669,11674,11678,11682,11686,11690,11694,11698,11702,11706,11710,11714],{"type":46,"tag":108,"props":11666,"children":11667},{"style":412},[11668],{"type":52,"value":863},{"type":46,"tag":108,"props":11670,"children":11671},{"style":136},[11672],{"type":52,"value":11673}," prisma ",{"type":46,"tag":108,"props":11675,"children":11676},{"style":126},[11677],{"type":52,"value":873},{"type":46,"tag":108,"props":11679,"children":11680},{"style":126},[11681],{"type":52,"value":3470},{"type":46,"tag":108,"props":11683,"children":11684},{"style":2462},[11685],{"type":52,"value":10533},{"type":46,"tag":108,"props":11687,"children":11688},{"style":136},[11689],{"type":52,"value":1639},{"type":46,"tag":108,"props":11691,"children":11692},{"style":126},[11693],{"type":52,"value":10315},{"type":46,"tag":108,"props":11695,"children":11696},{"style":436},[11697],{"type":52,"value":9646},{"type":46,"tag":108,"props":11699,"children":11700},{"style":126},[11701],{"type":52,"value":98},{"type":46,"tag":108,"props":11703,"children":11704},{"style":136},[11705],{"type":52,"value":11580},{"type":46,"tag":108,"props":11707,"children":11708},{"style":126},[11709],{"type":52,"value":295},{"type":46,"tag":108,"props":11711,"children":11712},{"style":136},[11713],{"type":52,"value":2344},{"type":46,"tag":108,"props":11715,"children":11716},{"style":126},[11717],{"type":52,"value":320},{"type":46,"tag":108,"props":11719,"children":11720},{"class":110,"line":224},[11721],{"type":46,"tag":108,"props":11722,"children":11723},{"emptyLinePlaceholder":544},[11724],{"type":52,"value":547},{"type":46,"tag":108,"props":11726,"children":11727},{"class":110,"line":237},[11728],{"type":46,"tag":108,"props":11729,"children":11730},{"style":456},[11731],{"type":52,"value":11732},"\u002F\u002F Use prisma normally\n",{"type":46,"tag":108,"props":11734,"children":11735},{"class":110,"line":250},[11736,11740,11745,11749,11753,11757,11761,11765,11769,11774,11778],{"type":46,"tag":108,"props":11737,"children":11738},{"style":412},[11739],{"type":52,"value":863},{"type":46,"tag":108,"props":11741,"children":11742},{"style":136},[11743],{"type":52,"value":11744}," users ",{"type":46,"tag":108,"props":11746,"children":11747},{"style":126},[11748],{"type":52,"value":873},{"type":46,"tag":108,"props":11750,"children":11751},{"style":115},[11752],{"type":52,"value":2658},{"type":46,"tag":108,"props":11754,"children":11755},{"style":136},[11756],{"type":52,"value":10524},{"type":46,"tag":108,"props":11758,"children":11759},{"style":126},[11760],{"type":52,"value":2450},{"type":46,"tag":108,"props":11762,"children":11763},{"style":136},[11764],{"type":52,"value":10781},{"type":46,"tag":108,"props":11766,"children":11767},{"style":126},[11768],{"type":52,"value":2450},{"type":46,"tag":108,"props":11770,"children":11771},{"style":2462},[11772],{"type":52,"value":11773},"findMany",{"type":46,"tag":108,"props":11775,"children":11776},{"style":136},[11777],{"type":52,"value":3929},{"type":46,"tag":108,"props":11779,"children":11780},{"style":126},[11781],{"type":52,"value":320},{"type":46,"tag":61,"props":11783,"children":11785},{"id":11784},"checklist",[11786],{"type":52,"value":11787},"Checklist",{"type":46,"tag":55,"props":11789,"children":11790},{},[11791],{"type":52,"value":11792},"Before considering the adapter complete:",{"type":46,"tag":9323,"props":11794,"children":11797},{"className":11795},[11796],"contains-task-list",[11798,11830,11875,11921,11942,11972,11981,11990,12004,12027,12036,12045],{"type":46,"tag":9327,"props":11799,"children":11802},{"className":11800},[11801],"task-list-item",[11803,11808,11810,11815,11817,11823,11824],{"type":46,"tag":11804,"props":11805,"children":11807},"input",{"disabled":544,"type":11806},"checkbox",[],{"type":52,"value":11809}," ",{"type":46,"tag":75,"props":11811,"children":11813},{"className":11812},[],[11814],{"type":52,"value":1959},{"type":52,"value":11816}," implemented with ",{"type":46,"tag":75,"props":11818,"children":11820},{"className":11819},[],[11821],{"type":52,"value":11822},"connect()",{"type":52,"value":3540},{"type":46,"tag":75,"props":11825,"children":11827},{"className":11826},[],[11828],{"type":52,"value":11829},"connectToShadowDb()",{"type":46,"tag":9327,"props":11831,"children":11833},{"className":11832},[11801],[11834,11837,11838,11843,11845,11850,11851,11856,11857,11862,11863,11868,11869],{"type":46,"tag":11804,"props":11835,"children":11836},{"disabled":544,"type":11806},[],{"type":52,"value":11809},{"type":46,"tag":75,"props":11839,"children":11841},{"className":11840},[],[11842],{"type":52,"value":1593},{"type":52,"value":11844}," implements ",{"type":46,"tag":75,"props":11846,"children":11848},{"className":11847},[],[11849],{"type":52,"value":9568},{"type":52,"value":9480},{"type":46,"tag":75,"props":11852,"children":11854},{"className":11853},[],[11855],{"type":52,"value":3577},{"type":52,"value":9480},{"type":46,"tag":75,"props":11858,"children":11860},{"className":11859},[],[11861],{"type":52,"value":9367},{"type":52,"value":9480},{"type":46,"tag":75,"props":11864,"children":11866},{"className":11865},[],[11867],{"type":52,"value":10010},{"type":52,"value":9480},{"type":46,"tag":75,"props":11870,"children":11872},{"className":11871},[],[11873],{"type":52,"value":11874},"dispose",{"type":46,"tag":9327,"props":11876,"children":11878},{"className":11877},[11801],[11879,11882,11883,11888,11889,11894,11895,11900,11901,11906,11907,11913,11915],{"type":46,"tag":11804,"props":11880,"children":11881},{"disabled":544,"type":11806},[],{"type":52,"value":11809},{"type":46,"tag":75,"props":11884,"children":11886},{"className":11885},[],[11887],{"type":52,"value":1720},{"type":52,"value":11844},{"type":46,"tag":75,"props":11890,"children":11892},{"className":11891},[],[11893],{"type":52,"value":9568},{"type":52,"value":9480},{"type":46,"tag":75,"props":11896,"children":11898},{"className":11897},[],[11899],{"type":52,"value":3577},{"type":52,"value":9480},{"type":46,"tag":75,"props":11902,"children":11904},{"className":11903},[],[11905],{"type":52,"value":10402},{"type":52,"value":9480},{"type":46,"tag":75,"props":11908,"children":11910},{"className":11909},[],[11911],{"type":52,"value":11912},"rollback",{"type":52,"value":11914}," with ",{"type":46,"tag":75,"props":11916,"children":11918},{"className":11917},[],[11919],{"type":52,"value":11920},"options: { usePhantomQuery: false }",{"type":46,"tag":9327,"props":11922,"children":11924},{"className":11923},[11801],[11925,11928,11929,11934,11935,11940],{"type":46,"tag":11804,"props":11926,"children":11927},{"disabled":544,"type":11806},[],{"type":52,"value":11809},{"type":46,"tag":75,"props":11930,"children":11932},{"className":11931},[],[11933],{"type":52,"value":3538},{"type":52,"value":3540},{"type":46,"tag":75,"props":11936,"children":11938},{"className":11937},[],[11939],{"type":52,"value":3546},{"type":52,"value":11941}," are lifecycle hooks only (no SQL issued)",{"type":46,"tag":9327,"props":11943,"children":11945},{"className":11944},[11801],[11946,11949,11950,11955,11957,11962,11964,11970],{"type":46,"tag":11804,"props":11947,"children":11948},{"disabled":544,"type":11806},[],{"type":52,"value":11809},{"type":46,"tag":75,"props":11951,"children":11953},{"className":11952},[],[11954],{"type":52,"value":10010},{"type":52,"value":11956}," issues ",{"type":46,"tag":75,"props":11958,"children":11960},{"className":11959},[],[11961],{"type":52,"value":5019},{"type":52,"value":11963}," (depth 1) or ",{"type":46,"tag":75,"props":11965,"children":11967},{"className":11966},[],[11968],{"type":52,"value":11969},"SAVEPOINT sp_N",{"type":52,"value":11971}," (nested)",{"type":46,"tag":9327,"props":11973,"children":11975},{"className":11974},[11801],[11976,11979],{"type":46,"tag":11804,"props":11977,"children":11978},{"disabled":544,"type":11806},[],{"type":52,"value":11980}," Argument mapping handles: string→int, string→bigint, string→float, base64→bytes",{"type":46,"tag":9327,"props":11982,"children":11984},{"className":11983},[11801],[11985,11988],{"type":46,"tag":11804,"props":11986,"children":11987},{"disabled":544,"type":11806},[],{"type":52,"value":11989}," Row mapping handles: bigint→string, Date→ISO string, JSON→string",{"type":46,"tag":9327,"props":11991,"children":11993},{"className":11992},[11801],[11994,11997,11999],{"type":46,"tag":11804,"props":11995,"children":11996},{"disabled":544,"type":11806},[],{"type":52,"value":11998}," Column types correctly mapped to ",{"type":46,"tag":75,"props":12000,"children":12002},{"className":12001},[],[12003],{"type":52,"value":9935},{"type":46,"tag":9327,"props":12005,"children":12007},{"className":12006},[11801],[12008,12011,12013,12019,12021,12026],{"type":46,"tag":11804,"props":12009,"children":12010},{"disabled":544,"type":11806},[],{"type":52,"value":12012}," Errors wrapped in ",{"type":46,"tag":75,"props":12014,"children":12016},{"className":12015},[],[12017],{"type":52,"value":12018},"DriverAdapterError",{"type":52,"value":12020}," with proper ",{"type":46,"tag":75,"props":12022,"children":12024},{"className":12023},[],[12025],{"type":52,"value":8278},{"type":52,"value":8521},{"type":46,"tag":9327,"props":12028,"children":12030},{"className":12029},[11801],[12031,12034],{"type":46,"tag":11804,"props":12032,"children":12033},{"disabled":544,"type":11806},[],{"type":52,"value":12035}," Isolation level validation for the target database",{"type":46,"tag":9327,"props":12037,"children":12039},{"className":12038},[11801],[12040,12043],{"type":46,"tag":11804,"props":12041,"children":12042},{"disabled":544,"type":11806},[],{"type":52,"value":12044}," Unit tests pass for queryRaw, executeRaw, executeScript, transactions",{"type":46,"tag":9327,"props":12046,"children":12048},{"className":12047},[11801],[12049,12052],{"type":46,"tag":11804,"props":12050,"children":12051},{"disabled":544,"type":11806},[],{"type":52,"value":12053}," E2E tests pass with real PrismaClient",{"type":46,"tag":12055,"props":12056,"children":12057},"style",{},[12058],{"type":52,"value":12059},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":12061,"total":224},[12062,12078,12092,12107,12120,12128,12142],{"slug":12063,"name":12063,"fn":12064,"description":12065,"org":12066,"tags":12067,"stars":26,"repoUrl":27,"updatedAt":12077},"prisma-cli","run Prisma CLI commands","Prisma ORM CLI commands reference covering init, generate, migrate, db, dev, studio, validate, format, debug, and mcp. Use for ORM\u002Fdatabase CLI workflows, not Prisma Compute app deployment. For Prisma Compute, `@prisma\u002Fcli app deploy`, `compute:deploy`, `create-prisma --deploy`, apps, deployments, logs, or domains, use the `prisma-compute` skill instead. Triggers on \"prisma init\", \"prisma generate\", \"prisma migrate\", \"prisma db\", \"prisma studio\", \"prisma mcp\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12068,12071,12072,12075,12076],{"name":12069,"slug":12070,"type":15},"CLI","cli",{"name":17,"slug":18,"type":15},{"name":12073,"slug":12074,"type":15},"Migration","migration",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:48:29.140467",{"slug":12079,"name":12079,"fn":12080,"description":12081,"org":12082,"tags":12083,"stars":26,"repoUrl":27,"updatedAt":12091},"prisma-client-api","write database queries with Prisma Client","Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on \"prisma query\", \"findMany\", \"create\", \"update\", \"delete\", \"$transaction\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12084,12087,12088,12089,12090],{"name":12085,"slug":12086,"type":15},"API Development","api-development",{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-04-06T18:48:31.666695",{"slug":12093,"name":12093,"fn":12094,"description":12095,"org":12096,"tags":12097,"stars":26,"repoUrl":27,"updatedAt":12106},"prisma-compute","deploy and host Prisma applications","Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma\u002Fcli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps\u002Fdeployments\u002Fbuild logs\u002Fdomains, `@prisma\u002Fcli agent install`, `@prisma\u002Fcli feedback`, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, Turborepo, or custom\u002Fprebuilt artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12098,12101,12102,12103],{"name":12099,"slug":12100,"type":15},"Deployment","deployment",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":12104,"slug":12105,"type":15},"Serverless","serverless","2026-07-17T05:31:53.370495",{"slug":12108,"name":12108,"fn":12109,"description":12110,"org":12111,"tags":12112,"stars":26,"repoUrl":27,"updatedAt":12119},"prisma-database-setup","configure Prisma with database providers","Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changing databases, or troubleshooting connection issues. Triggers on \"configure postgres\", \"connect to mysql\", \"setup mongodb\", \"sqlite setup\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12113,12114,12116,12117,12118],{"name":17,"slug":18,"type":15},{"name":12115,"slug":2007,"type":15},"MySQL",{"name":20,"slug":21,"type":15},{"name":9387,"slug":9384,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:48:34.192852",{"slug":4,"name":4,"fn":5,"description":6,"org":12121,"tags":12122,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12123,12124,12125,12126,12127],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"slug":12129,"name":12129,"fn":12130,"description":12131,"org":12132,"tags":12133,"stars":26,"repoUrl":27,"updatedAt":12141},"prisma-mongodb-upgrade","migrate Prisma MongoDB projects to v6","Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when \"upgrade to prisma 7\" comes up in a project with provider = \"mongodb\", or when evaluating a move to Prisma Next. Triggers on \"upgrade prisma mongodb\", \"prisma 7 mongodb\", \"mongodb prisma migration\", \"prisma next mongodb\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12134,12135,12136,12139,12140],{"name":17,"slug":18,"type":15},{"name":12073,"slug":12074,"type":15},{"name":12137,"slug":12138,"type":15},"MongoDB","mongodb",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},"2026-07-11T05:35:03.668013",{"slug":12143,"name":12143,"fn":12144,"description":12145,"org":12146,"tags":12147,"stars":26,"repoUrl":27,"updatedAt":12155},"prisma-postgres","manage Prisma Postgres databases","Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK. Use when creating Prisma Postgres databases, working in Prisma Console, provisioning with create-db\u002Fcreate-pg\u002Fcreate-postgres, or integrating programmatic provisioning with service tokens or OAuth.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12148,12149,12150,12151,12152],{"name":12069,"slug":12070,"type":15},{"name":17,"slug":18,"type":15},{"name":9387,"slug":9384,"type":15},{"name":9,"slug":8,"type":15},{"name":12153,"slug":12154,"type":15},"SDK","sdk","2026-07-17T05:31:52.398028",{"items":12157,"total":1282},[12158,12173,12186,12199,12212,12226,12242,12253,12266,12277,12288,12304],{"slug":12159,"name":12159,"fn":12160,"description":12161,"org":12162,"tags":12163,"stars":12170,"repoUrl":12171,"updatedAt":12172},"prisma-next","guide Prisma Next project setup and usage","Route a vague Prisma Next prompt to the right specific skill. Use for \"help me with Prisma Next\", \"what is Prisma Next\", \"explain Prisma Next\", \"I'm new to PN\", \"where do I start\", \"what can I do with Prisma Next\", \"what can I do next with Prisma\", \"just ran createprisma\", \"tour of Prisma Next\", \"Prisma Next overview\", and comparison questions like \"Prisma Next vs Prisma 7\", \"PN vs Drizzle\", \"PN vs Kysely\", \"PN vs TypeORM\". Do NOT use when the prompt clearly matches a workflow skill — adoption \u002F quickstart \u002F first-touch orientation \u002F brownfield introspection, schema \u002F contract editing, migration authoring (db update \u002F migration plan \u002F migrate), migration review on deploy \u002F concurrent migrations, queries \u002F db.orm \u002F db.sql \u002F TypedSQL, Supabase \u002F RLS \u002F role binding, runtime \u002F db.ts \u002F middleware wiring, build \u002F Vite plugin \u002F Next.js plugin, debug \u002F structured error envelopes \u002F PN-* error codes, or feedback \u002F bug report \u002F feature request — load that sibling skill directly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12164,12165,12168,12169],{"name":17,"slug":18,"type":15},{"name":12166,"slug":12167,"type":15},"Next.js","next-js",{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},415,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma-next","2026-07-17T05:32:04.322957",{"slug":12174,"name":12174,"fn":12175,"description":12176,"org":12177,"tags":12178,"stars":12170,"repoUrl":12171,"updatedAt":12185},"prisma-next-build","integrate Prisma Next into build systems","Wire Prisma Next into the project's build system with the right build-tool plugin — Vite today via @prisma-next\u002Fvite-plugin-contract-emit (Vite 7 \u002F 8); Next.js \u002F Webpack \u002F esbuild \u002F Rollup \u002F Turbopack are named as gaps rather than fabricated. Always offers the Vite plugin proactively when the project is using Vite. Use for vite plugin, vite-plugin, vite.config.ts, prismaVitePlugin, contract emit on save, HMR, hot reload contract, dev server, Next.js plugin, next plugin, withPrismaNext, webpack plugin, esbuild plugin, rollup plugin, build integration, dev server plugin, vite 7, vite 8.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12179,12180,12181,12182],{"name":12099,"slug":12100,"type":15},{"name":12166,"slug":12167,"type":15},{"name":9,"slug":8,"type":15},{"name":12183,"slug":12184,"type":15},"Vite","vite","2026-07-02T07:31:36.108254",{"slug":12187,"name":12187,"fn":12188,"description":12189,"org":12190,"tags":12191,"stars":12170,"repoUrl":12171,"updatedAt":12198},"prisma-next-contract","edit Prisma Next data contracts and models","Edit the Prisma Next data contract — add models, fields, relations, indexes, enums, value objects (composite types), type aliases, namespaces (Postgres schemas), cross-contract foreign keys (cross-space FK), polymorphic types (`@@discriminator` \u002F `@@base`), use extension namespaces (`pgvector.Vector(...)`, `cipherstash.EncryptedString(...)`), wire `prisma-next.config.ts` with `defineConfig` from the `@prisma-next\u002F\u003Ctarget>\u002Fconfig` façade, and run `prisma-next contract emit`. Use for schema, models, fields, attributes, soft delete, paranoid, scopes, validations, callbacks, prisma schema, PSL, contract.prisma, contract.ts, contract.json, contract.d.ts, `@prisma-next\u002Fpostgres\u002Fconfig`, `@prisma-next\u002Fpostgres\u002Fcontract-builder`, `@prisma-next\u002Fpostgres\u002Fcontrol`, `@prisma-next\u002Fmongo\u002Fconfig`, `@prisma-next\u002Fmongo\u002Fcontract-builder`, `extensions:`, pgvector, cipherstash, postgis, paradedb, supabase, `@prisma-next\u002Fextension-supabase`, `@@control`, control policy, managed, tolerated, external, observed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12192,12195,12196,12197],{"name":12193,"slug":12194,"type":15},"Data Modeling","data-modeling",{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-07-30T05:30:10.426962",{"slug":12200,"name":12200,"fn":12201,"description":12202,"org":12203,"tags":12204,"stars":12170,"repoUrl":12171,"updatedAt":12211},"prisma-next-debug","debug and recover from Prisma Next errors","Read a Prisma Next structured error envelope and route to the right recovery — code, domain, severity, why, fix, meta. Use for error, exception, my emit failed, my query won't typecheck, my query crashed, my migration won't apply, MIGRATION.HASH_MISMATCH, BUDGET.ROWS_EXCEEDED, BUDGET.TIME_EXCEEDED, RUNTIME.ABORTED, PLAN.HASH_MISMATCH, CONTRACT.MARKER_MISSING, PN-RUN-3001, PN-RUN-3002, PN-RUN-3030, PN-MIG-2001, PN-CLI-4011, PN-SCHEMA-0001, drift, capability missing, planner conflict, prisma studio, EXPLAIN, query log, db.end, db.close, script won't exit, hangs, close connection, pool.end, client is closed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12205,12206,12209,12210],{"name":17,"slug":18,"type":15},{"name":12207,"slug":12208,"type":15},"Debugging","debugging",{"name":12166,"slug":12167,"type":15},{"name":9,"slug":8,"type":15},"2026-07-24T05:37:10.436314",{"slug":12213,"name":12213,"fn":12214,"description":12215,"org":12216,"tags":12217,"stars":12170,"repoUrl":12171,"updatedAt":12225},"prisma-next-feedback","report Prisma Next issues and feedback","Hand a Prisma Next question or report off to the team — file a GitHub issue (bug or feature request), or route Q&A \u002F design discussion \u002F direct-team-contact to the Prisma Discord at pris.ly\u002Fdiscord. Use for bug, bug report, file an issue, report a bug, feature request, missing feature, this should be a feature, file this, this is a bug, this is broken, surprising behaviour, this doesn't work, file feedback, send feedback, capability gap, file via prisma-next-feedback, ask the team, talk to the team, talk to the Prisma team, talk to Prisma, Discord, Prisma Discord, Q&A, design feedback, is this the intended way, how should I do X, extension author question, extension author needs help.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12218,12221,12224],{"name":12219,"slug":12220,"type":15},"Documentation","documentation",{"name":12222,"slug":12223,"type":15},"GitHub","github",{"name":9,"slug":8,"type":15},"2026-07-02T07:31:34.870809",{"slug":12227,"name":12227,"fn":12228,"description":12229,"org":12230,"tags":12231,"stars":12170,"repoUrl":12171,"updatedAt":12241},"prisma-next-migration-review","review and resolve Prisma Next migrations","Review what Prisma Next migrations will run on merge or deploy, render the migration graph, resolve concurrent \u002F diamond-convergence conflicts, and configure environment refs for CI. Use for \"what migrations are going to run\", \"what runs on deploy\", merge conflict, diamond convergence, concurrent migrations, migration status, ref management, staging, production, MIGRATION.DIVERGED, MIGRATION.NO_MARKER, MIGRATION.MARKER_NOT_IN_HISTORY, prisma migrate status, prisma migrate diff, prisma migrate resolve.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12232,12235,12238,12239,12240],{"name":12233,"slug":12234,"type":15},"CI\u002FCD","ci-cd",{"name":12236,"slug":12237,"type":15},"Code Review","code-review",{"name":17,"slug":18,"type":15},{"name":12073,"slug":12074,"type":15},{"name":9,"slug":8,"type":15},"2026-07-24T05:37:11.422323",{"slug":12243,"name":12243,"fn":12244,"description":12245,"org":12246,"tags":12247,"stars":12170,"repoUrl":12171,"updatedAt":12252},"prisma-next-migrations","author and manage Prisma Next migrations","Author Prisma Next migrations — choose db update vs migration plan, edit the framework-rendered migration.ts (replace placeholder sentinels with dataTransform closures), recover from MIGRATION.HASH_MISMATCH or PN-MIG-2001 unfilled placeholder. Use for prisma migrate dev, prisma migrate deploy, prisma db push, db update, db update --dry-run, migration plan, migrate, migration new, migration show, db verify, db sign, data migration, this.dataTransform, dataTransform, placeholder, generated migration.ts, edit migration.ts, MIGRATION.HASH_MISMATCH, schema drift.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12248,12249,12250,12251],{"name":17,"slug":18,"type":15},{"name":12073,"slug":12074,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-07-24T05:37:13.469138",{"slug":12254,"name":12254,"fn":12255,"description":12256,"org":12257,"tags":12258,"stars":12170,"repoUrl":12171,"updatedAt":12265},"prisma-next-queries","write Prisma Next queries for database operations","Write Prisma Next queries for Postgres, SQLite, or Mongo — pick a lane (Postgres\u002FSQLite `db.orm.\u003CModel>` + `db.sql.\u003Ctable>`; Mongo `db.orm.\u003Croot>` + `db.query.from(...)` pipeline builder), filter \u002F project \u002F sort \u002F paginate, eager-load with `.include(...)`, Postgres\u002FSQLite `db.transaction(...)`, Postgres\u002FSQLite ORM `.aggregate(...)`, Mongo aggregations via query builder, namespace-aware accessors (`db.orm.\u003Cns>.\u003CModel>`, `db.sql.\u003Cns>.\u003Ctable>`). Triggers: query, where, match, select, project, orderBy, take, skip, include, lookup, first, all, count, aggregate, group, create, update, delete, upsert, returning, transaction, db.close, script teardown, variant, polymorphism, drizzle-style, kysely-style. Notes: `.all()` is a Thenable (just `await` it), iterators are single-use (`RUNTIME.ITERATOR_CONSUMED`), Postgres `count` is `number` while sum\u002Favg\u002Fmin\u002Fmax are `number | null`, ranges use chained `.where()` or `and(...)` (no `.between(...)`).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12259,12260,12261,12262,12263],{"name":17,"slug":18,"type":15},{"name":12166,"slug":12167,"type":15},{"name":9387,"slug":9384,"type":15},{"name":9,"slug":8,"type":15},{"name":12264,"slug":2693,"type":15},"SQL","2026-07-17T05:32:03.35373",{"slug":12267,"name":12267,"fn":12268,"description":12269,"org":12270,"tags":12271,"stars":12170,"repoUrl":12171,"updatedAt":12276},"prisma-next-quickstart","adopt Prisma Next in projects","Adopt Prisma Next into a new project, onto an existing database, or as the first move after a bootstrap tool dropped you into a scaffold. Use for \"what can I do with Prisma Next\", \"what can I do next with Prisma\", \"where do I start\", \"what should I do first\", \"just ran createprisma\", \"createprisma\", \"npx createprisma\", \"npx create-prisma\", \"first steps\", \"first query\", \"I have a scaffolded Prisma Next project what now\"; for `pnpm dlx prisma-next init` greenfield setup; and for `prisma-next contract infer` + `db sign` against an existing database. Also covers the connect-write-read first-arc orientation, the day-to-day commands (`contract emit`, `db init`, `db update`, `migration plan`, `migrate`, `db schema`, `db verify`), and routing to `prisma-next-contract` \u002F `prisma-next-queries` \u002F `prisma-next-runtime` for the next move. Flags: --target, --authoring, --schema-path, --probe-db, --output.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12272,12273,12274,12275],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-07-24T05:37:12.462072",{"slug":12278,"name":12278,"fn":12279,"description":12280,"org":12281,"tags":12282,"stars":12170,"repoUrl":12171,"updatedAt":12287},"prisma-next-runtime","configure Prisma Next runtime and database connections","Wire the Prisma Next runtime — `db.ts` setup using `postgres\u003CContract>(...)` from `@prisma-next\u002Fpostgres\u002Fruntime`, `sqlite\u003CContract>(...)` from `@prisma-next\u002Fsqlite\u002Fruntime`, or `mongo\u003CContract>(...)` from `@prisma-next\u002Fmongo\u002Fruntime`; middleware composition (telemetry from `@prisma-next\u002Fmiddleware-telemetry`; lints and budgets), `DATABASE_URL` config, per-environment branching, switching between Postgres, SQLite, and Mongo façades. Use for db.ts, postgres(), sqlite(), mongo(), middleware, telemetry, lints, budgets, DATABASE_URL, .env, connection pool, poolOptions, dev vs prod config, transactions, db.transaction, read replicas, multi-database, script won't exit, hangs, close connection, db.end, db.close, pool.end, [Symbol.asyncDispose], await using.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12283,12284,12285,12286],{"name":17,"slug":18,"type":15},{"name":12166,"slug":12167,"type":15},{"name":9387,"slug":9384,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T05:32:05.347316",{"slug":12289,"name":12289,"fn":12290,"description":12291,"org":12292,"tags":12293,"stars":12170,"repoUrl":12171,"updatedAt":12303},"prisma-next-supabase","integrate Prisma with Supabase","Use Prisma Next with a Supabase project via `@prisma-next\u002Fextension-supabase` — wire `extensions: [supabasePack]`, declare cross-space FKs to `supabase:auth.AuthUser`, author RLS policies (`policy_select` \u002F `policy_update` \u002F `@@rls`, `auth.uid()` predicates), build `db.ts` with the `supabase()` factory, bind roles per request (`asUser(jwt)` \u002F `asAnon()` \u002F `asServiceRole()`), query `auth.*` \u002F `storage.*` via the `db.asServiceRole().supabase` admin root, and validate JWTs (`jwksUrl` for current projects \u002F `jwtSecret` for legacy HS256). Use for supabase, RLS, row level security, policy, role binding, anon, authenticated, service_role, auth.users, auth.uid(), JWT, JWKS, SUPABASE_JWKS_URL, SUPABASE_JWT_SECRET, SUPABASE.JWT_INVALID, SUPABASE.CONFIG_INVALID, RoleBoundDb, session pooler, supabase:auth.AuthUser, @prisma-next\u002Fextension-supabase.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12294,12297,12298,12299,12300],{"name":12295,"slug":12296,"type":15},"Auth","auth",{"name":20,"slug":21,"type":15},{"name":9387,"slug":9384,"type":15},{"name":9,"slug":8,"type":15},{"name":12301,"slug":12302,"type":15},"Supabase","supabase","2026-07-30T05:30:11.065251",{"slug":12063,"name":12063,"fn":12064,"description":12065,"org":12305,"tags":12306,"stars":26,"repoUrl":27,"updatedAt":12077},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[12307,12308,12309,12310,12311],{"name":12069,"slug":12070,"type":15},{"name":17,"slug":18,"type":15},{"name":12073,"slug":12074,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15}]