Skip to content

Commit

Permalink
use .withoutTransform for SqlEventLogServer
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Nov 21, 2024
1 parent f1a32d1 commit b7ef0a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/sql/src/SqlEventLogServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ export const makeStorage = (options?: {
pg: () =>
sql`CREATE TABLE IF NOT EXISTS ${sql(remoteIdTable)} (
remote_id BYTEA PRIMARY KEY
)`.unprepared,
)`.withoutTransform,
mysql: () =>
sql`
CREATE TABLE IF NOT EXISTS ${sql(remoteIdTable)} (
remote_id BINARY(16) PRIMARY KEY
)`.unprepared,
)`.withoutTransform,
mssql: () =>
sql`
CREATE TABLE IF NOT EXISTS ${sql(remoteIdTable)} (
remote_id VARBINARY(16) PRIMARY KEY
)`.unprepared,
)`.withoutTransform,
orElse: () =>
sql`
CREATE TABLE IF NOT EXISTS ${sql(remoteIdTable)} (
remote_id BLOB PRIMARY KEY
)`.unprepared
)`.withoutTransform
})
const remoteId = yield* sql<{ remote_id: Uint8Array }>`SELECT remote_id FROM ${sql(remoteIdTable)}`.pipe(
Effect.flatMap((results) => {
Expand Down

0 comments on commit b7ef0a3

Please sign in to comment.