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 intWorking Example
Example Snippetgo
package main
import ( "database/sql" "database/sql/driver" "fmt")
func main() { v := driver.IsolationLevel(sql.LevelSerializable); fmt.Println(sql.IsolationLevel(v)) }