Standard library / database/sql

sql.LevelReadCommitted

Requests isolation that prevents dirty reads. Support is driver-dependent; this example only prints the level name. Expected stdout: 'Read Committed\n'.

Formal Syntax & Structure

go syntaxgo
const LevelReadCommitted IsolationLevel = 2

Working Example

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