Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danylo-safonov-solid committed Sep 13, 2023
1 parent 94c408f commit 2a319c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/src/isolation_level.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/// https://www.postgresql.org/docs/current/transaction-iso.html
enum IsolationLevel {
readCommited,
/// [postgresql/Transaction Isolation/Read Committed Isolation Level](https://www.postgresql.org/docs/current/transaction-iso.html#XACT-READ-COMMITTED)
readCommitted,

/// [postgresql/Transaction Isolation/Repeatable Read Isolation Level](https://www.postgresql.org/docs/current/transaction-iso.html#XACT-REPEATABLE-READ)
repeatableRead,

/// [postgresql/Transaction Isolation/Serializable Isolation Level](https://www.postgresql.org/docs/current/transaction-iso.html#XACT-SERIALIZABLE)
serializable;

/// Parses a string containing an [IsolationLevel] literal into its instance.
static IsolationLevel parse(String string) =>
values.firstWhere((e) => e.name == string);
}

0 comments on commit 2a319c2

Please sign in to comment.