forked from forgejo/forgejo
Update xorm and fix dump command (#692)
* update xorm and fix dump * catch database init error * still use dumpTables * fix dump bool type * update vendor.json
This commit is contained in:
parent
74ed6dc3ad
commit
a8048c19f3
14 changed files with 631 additions and 717 deletions
4
vendor/github.com/go-xorm/xorm/doc.go
generated
vendored
4
vendor/github.com/go-xorm/xorm/doc.go
generated
vendored
|
@ -38,7 +38,7 @@ ORM Methods
|
|||
|
||||
There are 7 major ORM methods and many helpful methods to use to operate database.
|
||||
|
||||
1. Insert one or multipe records to database
|
||||
1. Insert one or multiple records to database
|
||||
|
||||
affected, err := engine.Insert(&struct)
|
||||
// INSERT INTO struct () values ()
|
||||
|
@ -81,7 +81,7 @@ another is Rows
|
|||
affected, err := engine.Id(...).Update(&user)
|
||||
// UPDATE user SET ...
|
||||
|
||||
6. Delete one or more records, Delete MUST has conditon
|
||||
6. Delete one or more records, Delete MUST has condition
|
||||
|
||||
affected, err := engine.Where(...).Delete(&user)
|
||||
// DELETE FROM user Where ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue