Skip to content

Conversation

@BrendanC23
Copy link

The odbc object contains transaction isolation level constants that were not included in the TypeScript definition. They could be accessed at runtime but the TypeScript compiler would give a compile-time error.

This commit exposes the following constants (all have type number):

  • SQL_TXN_READ_UNCOMMITTED
  • SQL_TXN_READ_COMMITTED
  • SQL_TXN_REPEATABLE_READ
  • SQL_TXN_SERIALIZABLE

Note that the odbc object also has constants with the full word "transaction" (ex: SQL_TRANSACTION_READ_UNCOMMITTED) that have the same value. It also has constants for various SQL types.

The odbc object contains transaction isolation level constants that
were not included in the TypeScript definition. They could be accessed
at runtime but the TypeScript compiler would give a compile-time error.

This commit exposes the following constants (all have type `number`):

* `SQL_TXN_READ_UNCOMMITTED`
* `SQL_TXN_READ_COMMITTED`
* `SQL_TXN_REPEATABLE_READ`
* `SQL_TXN_SERIALIZABLE`

Note that the odbc object also has constants with the full word
"transaction" (ex: `SQL_TRANSACTION_READ_UNCOMMITTED`) that have the
same value. It also has constants for various SQL types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant