tryLockExpr :: RawSql.RawSql
tryLockExpr =
  RawSql.fromString "SELECT pg_try_advisory_xact_lock("
    <> RawSql.parameter (SqlValue.fromInt32 orvilleLockScope)
    <> RawSql.comma
    <> RawSql.parameter (SqlValue.fromInt32 migrationLockId)
    <> RawSql.fromString ") as locked"
tryLockExpr :: RawSql.RawSql
tryLockExpr =
  RawSql.fromString "SELECT pg_try_advisory_xact_lock("
    <> RawSql.parameter (SqlValue.fromInt32 orvilleLockScope)
    <> RawSql.comma
    <> RawSql.parameter (SqlValue.fromInt32 migrationLockId)
    <> RawSql.fromString ") as locked"
tryLockExpr =
  RawSql.fromString "SELECT pg_try_advisory_xact_lock("
    <> RawSql.parameter (SqlValue.fromInt32 orvilleLockScope)
    <> RawSql.comma
    <> RawSql.parameter (SqlValue.fromInt32 migrationLockId)
    <> RawSql.fromString ") as locked"