Skip to content

Commit 9f3d5d5

Browse files
authored
Merge pull request #5 from zachvictor/beta
v0.1.1-beta Rename module for GitHub hosting
2 parents c557f9a + df0f201 commit 9f3d5d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sqlinsert
2-
Generate SQL INSERT statement with bind parameters directly from a Go struct. Define column names in struct tags. Supports bind parameter token types of MySQL, PostgreSQL, Oracle, SingleStore (MemSQL), SQL Server (T-SQL), and their equivalents. Struct values become bind arguments. Works seamlessly with standard [database/sql](https://pkg.go.dev/database/sql) package. Use SQL string and Args slice piecemeal or use `Insert()` or `InsertContext()` with a `sql.Conn`, `sql.DB`, or `sql.Tx` to execute the INSERT statement directly.
3-
2+
Generate SQL INSERT statement with bind parameters directly from a Go struct. Define column names in struct tags. Supports bind parameter token types of MySQL, PostgreSQL, Oracle, SingleStore (MemSQL), SQL Server (T-SQL), and their equivalents. Struct values become bind arguments. Works seamlessly with standard [database/sql](https://pkg.go.dev/database/sql) package. Use SQL string and Args slice piecemeal or use `Insert()` or `InsertContext()` with a `sql.Conn`, `sql.DB`, or `sql.Tx` to execute the INSERT statement directly.
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/zachvictor/sqlinsert.svg)](https://pkg.go.dev/github.com/zachvictor/sqlinsert)
44
## Example
55
### Given
66
```sql

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module sqlinsert
1+
module github.com/zachvictor/sqlinsert
22

33
go 1.18
44

0 commit comments

Comments
 (0)