Skip to content

Commit

Permalink
: init
Browse files Browse the repository at this point in the history
  • Loading branch information
mysiar committed May 19, 2024
0 parents commit 1bd2832
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### Go template
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# go-sql-raw

The main reason that this module has been created was generic querying database without knowing table structure.

## How to use it

```go
rows, err: = Db.Query("SELECT * FROM album")

defer rows.Close()
var data []RawStringType
for rows.Next() {
rec := Rows2Map(rows)
data = append(data, rec)
}

```

## TODO
* ...
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/mysiar-org/go-sql-raw

go 1.22.2

0 comments on commit 1bd2832

Please sign in to comment.