mirror of https://github.com/golang/go.git
database/sql: correctly spell constants
Also add a link to more information about isolation levels as defined by the SQL standard. Fixes #17682. Change-Id: I94c53b713f4c882af40cf15fe5f1e5dbc53ea741 Reviewed-on: https://go-review.googlesource.com/32418 Reviewed-by: Daniel Theophanes <kardianos@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
4b90b7a28a
commit
92568bcb6a
|
|
@ -97,11 +97,13 @@ type IsolationLevel int
|
||||||
|
|
||||||
// Various isolation levels that drivers may support in BeginContext.
|
// Various isolation levels that drivers may support in BeginContext.
|
||||||
// If a driver does not support a given isolation level an error may be returned.
|
// 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 (
|
const (
|
||||||
LevelDefault IsolationLevel = iota
|
LevelDefault IsolationLevel = iota
|
||||||
LevelReadUncommited
|
LevelReadUncommitted
|
||||||
LevelReadCommited
|
LevelReadCommitted
|
||||||
LevelWriteCommited
|
LevelWriteCommitted
|
||||||
LevelRepeatableRead
|
LevelRepeatableRead
|
||||||
LevelSnapshot
|
LevelSnapshot
|
||||||
LevelSerializable
|
LevelSerializable
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue