Standard library / database/sql/driver

driver.IsolationLevel

Driver-side representation corresponding to sql.IsolationLevel. Reject unsupported values. Expected stdout: 'Serializable\n'.

Formal Syntax & Structure

go syntaxgo
type IsolationLevel int

Working Example

Example Snippetgo
package main
import (  "database/sql"  "database/sql/driver"  "fmt")
func main() { v := driver.IsolationLevel(sql.LevelSerializable); fmt.Println(sql.IsolationLevel(v)) }
Go Reference