MCPcopy Index your code
hub / github.com/Effect-TS/effect / insertMigrations

Function insertMigrations

packages/sql/src/Migrator.ts:125–132  ·  view source on GitHub ↗
(
      rows: ReadonlyArray<[id: number, name: string]>
    )

Source from the content-addressed store, hash-verified

123 })
124
125 const insertMigrations = (
126 rows: ReadonlyArray<[id: number, name: string]>
127 ) =>
128 sql`INSERT INTO ${sql(table)} ${
129 sql.insert(
130 rows.map(([migration_id, name]) => ({ migration_id, name }))
131 )
132 }`.withoutTransform
133
134 const latestMigration = Effect.map(
135 sql<{ migration_id: number; name: string; created_at: Date }>`SELECT migration_id, name, created_at FROM ${

Callers 1

makeFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…