shad-go/lectures/07-sql/named/insert.go

6 lines
109 B
Go
Raw Normal View History

2020-04-08 19:20:23 +00:00
db.ExecContext(
ctx,
"INSERT INTO users(name) VALUES(@name)"),
sql.Named("name", "Rocinante"),
)