Standard library / database/sql

sql.LevelSnapshot

Requests snapshot isolation, not necessarily serializability. Support is driver-dependent; this example only prints the level name. Expected stdout: 'Snapshot\n'.

Formal Syntax & Structure

go syntaxgo
const LevelSnapshot IsolationLevel = 5

Working Example

Example Snippetgo
package main
import (  "database/sql"  "fmt")
func main() { fmt.Println(sql.LevelSnapshot.String()) }
Go Reference