Skip to content

@effect/tsgo@0.74.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 19:40
· 2 commits to main since this release
f142d18

Minor Changes

  • c001a43: Add the sqlTaggedRowTypeToSqlSchema diagnostic (off by default, Effect v4). It flags Effect's sql tagged template when it is given an explicit row type, which only asserts the row shape, and suggests SqlSchema with a Result Schema so rows are decoded at runtime.

    const [existing] = yield* sql<CommandRow>`SELECT command_id, fingerprint FROM commands WHERE key_hash = ${keyHash}`
    // Suggested instead:
    const findByKey = SqlSchema.findOne({
      Request: Schema.String,
      Result: CommandRow,
      execute: (key) => sql`SELECT command_id, fingerprint FROM commands WHERE key_hash = ${key}`
    })

Patch Changes