aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/sql')
-rw-r--r--src/database/sql/sql.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go
index 6d2dcb8c73..43227e92ea 100644
--- a/src/database/sql/sql.go
+++ b/src/database/sql/sql.go
@@ -97,11 +97,13 @@ type IsolationLevel int
// Various isolation levels that drivers may support in BeginContext.
// If a driver does not support a given isolation level an error may be returned.
+//
+// See https://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels.
const (
LevelDefault IsolationLevel = iota
- LevelReadUncommited
- LevelReadCommited
- LevelWriteCommited
+ LevelReadUncommitted
+ LevelReadCommitted
+ LevelWriteCommitted
LevelRepeatableRead
LevelSnapshot
LevelSerializable