shad-go/lectures/07-sql/named/insert.go
2020-04-08 22:20:23 +03:00

5 lines
109 B
Go

db.ExecContext(
ctx,
"INSERT INTO users(name) VALUES(@name)"),
sql.Named("name", "Rocinante"),
)