Standard library / database/sql
sql.IsolationLevel
Enumerates isolation requests in TxOptions. Check BeginTx errors; support and semantics depend on the database. Expected stdout: 'Serializable\n'.
Formal Syntax & Structure
go syntaxgo
type IsolationLevel intWorking Example
Example Snippetgo
package main
import ( "database/sql" "fmt")
func main() { var level sql.IsolationLevel = sql.LevelSerializable; fmt.Println(level) }