-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af8b1db
commit d3e9851
Showing
1 changed file
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# sqlx | ||
sqlx is a postgres database orm | ||
|
||
Golang's lightweight ORM Library | ||
|
||
|
||
Overview | ||
--- | ||
|
||
- Part-Featured ORM | ||
- SQL Builder, Create/Delete/Find/Save/Count/Sum/Max/Avg/SetInc/SetDev with SQL Expr | ||
- Developer Not Friendly,Because I'm Rubbish | ||
|
||
Contributing | ||
--- | ||
|
||
You can commit PR to this repository | ||
|
||
Quick start | ||
--- | ||
```` | ||
package main | ||
import "github.com/gobkc/sqlx" | ||
func main() { | ||
db := NewPg("postgres1", "password1", "localhost:5566", "testDb", "disable") | ||
err := db.Table("app").Where("id=?", 62).Update(&map[string]interface{}{"name":"123"}) | ||
if err != nil { | ||
fmt.Println(err) | ||
} | ||
} | ||
```` | ||
Please refer to [pgsql_test.go](https://github.com/gobkc/sqlx/blob/main/pgsql_test.go) document for more example | ||
|
||
License | ||
--- | ||
|
||
© Gobkc, 2022~time.Now | ||
|
||
Released under the Apache License | ||
|