6 lines
126 B
Go
6 lines
126 B
Go
var name sql.NullString
|
|
db.ExecContext(
|
|
ctx,
|
|
"INSERT INTO users(name) VALUES(@name)"),
|
|
sql.Named("name", name),
|
|
)
|