Skip to content

Commit 1bd2832

Browse files
committed
: init
0 parents  commit 1bd2832

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

Diff for: .gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### Go template
2+
# If you prefer the allow list template instead of the deny list, see community template:
3+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
4+
#
5+
# Binaries for programs and plugins
6+
*.exe
7+
*.exe~
8+
*.dll
9+
*.so
10+
*.dylib
11+
12+
# Test binary, built with `go test -c`
13+
*.test
14+
15+
# Output of the go coverage tool, specifically when used with LiteIDE
16+
*.out
17+
18+
# Dependency directories (remove the comment below to include it)
19+
# vendor/
20+
21+
# Go workspace file
22+
go.work
23+

Diff for: README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# go-sql-raw
2+
3+
The main reason that this module has been created was generic querying database without knowing table structure.
4+
5+
## How to use it
6+
7+
```go
8+
rows, err: = Db.Query("SELECT * FROM album")
9+
10+
defer rows.Close()
11+
var data []RawStringType
12+
for rows.Next() {
13+
rec := Rows2Map(rows)
14+
data = append(data, rec)
15+
}
16+
17+
```
18+
19+
## TODO
20+
* ...

Diff for: go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/mysiar-org/go-sql-raw
2+
3+
go 1.22.2

0 commit comments

Comments
 (0)