Commit Graph

130 Commits

Author SHA1 Message Date
Lunny Xiao 05a8643056 Remove mymysql driver since it's unmaintained for a long time (#2349)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2349
2023-10-27 09:21:35 +00:00
Lunny Xiao 3b53a5f847 upgrade dependencies (#2223)
Fix #2209

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2223
2023-07-12 11:06:39 +00:00
Lunny Xiao a2d3669edf Add README and fix some lints (#2079)
as title.

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2079
2021-12-14 09:00:35 +08:00
stepbystep2 a22f5dce83 少了个`.` (#2068)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2068
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: stepbystep2 <stepbystep2@noreply.gitea.io>
Co-committed-by: stepbystep2 <stepbystep2@noreply.gitea.io>
2021-11-09 17:55:37 +08:00
Lunny Xiao 0a429a241d Drop sync function and rename sync2 to sync (#2018)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2018
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-24 17:13:17 +08:00
Lunny Xiao d92fb412ee Make Get and Rows.Scan accept multiple parameters (#2029)
Now the below behaviours are allowed.

```Go
var id int64
var name string
has, err := engine.Table(&user).Cols("id", "name").Get(&id, &name)
// SELECT id, name FROM user LIMIT 1
```

```Go
rows, err := engine.Cols("name", "age").Rows(&User{Name:name})
// SELECT * FROM user
defer rows.Close()
for rows.Next() {
    var name string
    var age int
    err = rows.Scan(&name, &age)
}
```

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2029
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-24 15:42:34 +08:00
Lunny Xiao fae164488c Fix problem on README (#2028)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2028
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-08 15:35:44 +08:00
Lunny Xiao bd1ca33ea5 Update docs for pgx (#2024)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2024
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-05 14:47:25 +08:00
Lunny Xiao 0f3f4ea7fb Update docs (#2003)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2003
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-21 19:17:50 +08:00
Lunny Xiao 8f64a78cd4 Support delete with no bean (#1926)
Now you can use delete like this:

```
orm.Table("my_table").Where("id=?",1).Delete()
```

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1926
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-06 17:11:45 +08:00
Lunny Xiao 08a18027a0
Update README badges 2020-06-13 13:37:43 +08:00
Lunny Xiao 5575e839df Add changelog for v1.0.0 (#1614)
Add changelog for v1.0.0

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1614
2020-03-22 06:28:25 +00:00
Lunny Xiao 00b65c6d99 Update README (#1582)
Remove version

Update README

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1582
2020-03-08 06:10:05 +00:00
Lunny Xiao c13117f0e6 Fix outdate changelog (#1565)
Fix outdate changelog

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1565
2020-02-29 09:30:26 +00:00
Lunny Xiao 0090e33224 Fix go mod and update version (#1460) 2019-10-16 06:55:10 +00:00
Lunny Xiao b81aa40128 Move github.com/go-xorm/xorm to xorm.io/xorm (#1459) 2019-10-15 05:15:41 +00:00
__simple d0827bfc00 Update README_CN.md (#1331)
修改错别字
2019-06-19 10:36:23 +08:00
yanser c790592482 Update README.md file (#1246)
Update README
2019-03-09 23:07:35 +08:00
喜欢兰花山丘 a8f0a7110a Update README_CN.md (#1179)
Fix Transaction param by README_CN.md
2018-12-20 16:05:00 +08:00
Lunny Xiao fd49db598f
update chinese readme 2018-12-05 16:24:22 +08:00
Lunny Xiao 7a9249de33
Get adds context cache feature (#1102)
* context

* add context cache feature

* remove global context cache

* remove global context cache

* reset statment

* fix bug

* remove unused params

* refactor ContextCache

* refactor ContextCache

* update README

* update README

* disable global cache on context cache test
2018-09-25 21:31:44 +08:00
Lunny Xiao 1261905a94
update readme 2018-09-21 10:04:58 +08:00
Lunny Xiao d85bb4911c
add opencollective (#926) 2018-05-04 13:45:50 +08:00
Lunny Xiao fc1b13e0d8
v0.6.6 2018-04-13 17:45:25 +08:00
Lunny Xiao e98616d656
update README 2018-04-10 10:18:32 +08:00
Lunny Xiao 60090fa5e0
update README 2018-02-27 11:18:10 +08:00
Loli caab56ac7e docs(README): fix limit sql (#830) 2018-01-22 05:33:52 -06:00
Lunny Xiao 1933dd69e2
update READMEs 2017-12-04 22:05:36 +08:00
Lunny Xiao 4a4bac517d
update README 2017-12-04 21:54:38 +08:00
Lunny Xiao 16930c1be7
update READMEs 2017-12-02 10:47:03 +08:00
Lunny Xiao 4e7d9706bd
add new case stduygolang 2017-08-13 21:19:20 +08:00
Lunny Xiao 774f83c1bc add Exist functions (#640) 2017-07-14 09:20:13 +08:00
Yang Luo 78795d8f13 add Xorm Adapter for Casbin as cases (#639) 2017-07-11 22:53:39 +08:00
ka1em 6dd1a9db58 Fixed spelling mistakes (#622)
Fixed spelling mistakes
  Sacn ==Scan
2017-06-19 16:08:08 +08:00
Lunny Xiao e11235316c
change chatroom from gitter to discord 2017-06-12 11:16:18 +08:00
Lunny Xiao 6278427ee6
change ci badage 2017-05-27 10:56:35 +08:00
Lunny Xiao 6992e40a84
update CI config 2017-05-26 15:53:09 +08:00
Lunny Xiao 5497f76c84
add QueryString support 2017-04-01 10:35:27 +08:00
Lunny Xiao 5ebae720bd
add Scan features to Get method 2017-04-01 10:09:00 +08:00
Lunny Xiao 0691bf9b03
since we use vendor directory, remove gopm installation support 2017-03-26 09:51:24 +08:00
Lunny Xiao 1ae959721f
improved readme badges 2016-12-13 15:04:09 +08:00
Lunny Xiao 4e70730c67
change readme build status to circleci 2016-12-13 14:33:40 +08:00
miaolz123 36f9d8230a fix README_CN.md syntax 2016-10-09 09:49:26 +08:00
Lunny Xiao 1b773e8762 add sql builder feature on readme 2016-09-18 09:17:03 +08:00
Lunny Xiao d67e37d253 added query builder for README 2016-09-17 20:12:24 +08:00
Lunny Xiao 01c5ff6337 added condition query builder support via github.com/go-xorm/builder 2016-09-17 20:04:52 +08:00
Lunny Xiao 4bcbb95688 added DumpTables and DumpTablesToFile for dump parts of tables to other database type 2016-02-29 22:32:41 +08:00
Lunny Xiao 249a60b31c added notice for non-compitable update 2016-02-16 20:47:34 +08:00
Lunny Xiao a0aaa7d72b logging interface changed and resolved #160 #219 #353 2016-02-16 17:18:01 +08:00
Lunny Xiao d3155a494d updated readme 2015-12-30 16:58:58 +08:00