Lunny Xiao
6e78cff477
Use any instead of interface{}
2023-10-28 17:48:25 +08:00
datbeohbbh
52855dae32
update go version to v1.17 in .drone.yml ( #2219 )
...
issue: #2218
Co-authored-by: datbeohbbh <phongtomfapp@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2219
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: datbeohbbh <datbeohbbh@noreply.gitea.io>
Co-committed-by: datbeohbbh <datbeohbbh@noreply.gitea.io>
2023-02-12 11:16:53 +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
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
79bdda3cf1
Move all integrations tests to a standalone sub package ( #1635 )
...
Fix vet
Remove unused files
Move all integrations tests to a standalone sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1635
2020-03-27 07:13:04 +00:00
Lunny Xiao
bf25a77bca
Merge core package back into the main repository and split into serval sub packages. ( #1543 )
...
Fix test
Improve fmt
update go.mod
Move core as a sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1543
2020-02-24 08:53:18 +00:00
Lunny Xiao
b81aa40128
Move github.com/go-xorm/xorm to xorm.io/xorm ( #1459 )
2019-10-15 05:15:41 +00:00
Lunny Xiao
bb639f6700
refactor query functions ( #689 )
...
* refactor query functions
* remove unused function
* remove unnecessary resetStatement and some improvements
* rename all Id to ID
2017-08-27 15:50:43 +08:00
Lunny Xiao
7a9bf19c65
move lifetime to a split file so that go1.1 is also work with this feature ( #612 )
2017-06-08 10:21:01 +08:00
Lunny Xiao
8a877636fd
add custom SQL count support ( #609 )
...
* add custom SQL count support
* fix tests
2017-06-06 14:54:59 +08:00
Lunny Xiao
a4a8e4a739
fix bug and add set conn max lifetime ( #606 )
...
* fix sqlite bug and add SetConnMaxLifetime
* add parse for composite keys
* required go 1.5+
2017-06-05 15:08:30 +08:00
Lunny Xiao
316ee2cebf
fix docs error
2017-03-17 19:30:03 +08:00
Lunny Xiao
d2755b458a
typo
2017-03-15 09:44:49 +08:00
Lunny Xiao
3def9e0b2c
improved godoc
2017-03-15 09:43:29 +08:00
Lunny Xiao
bc97322264
fix wrong type in doc
2017-03-06 19:44:30 +08:00
Lunny Xiao
664a52a6d7
some gofmt & golint fixed
2017-01-09 09:52:23 +08:00
Lunny Xiao
5c116a34d6
bug fixed #379
2016-04-22 21:43:22 +08:00
Lunny Xiao
1992491553
license
2015-04-28 16:25:04 +08:00
Lunny Xiao
cbbee101c0
improved doc.go
2015-02-09 20:10:40 +08:00
Lunny Xiao
cdf42e44c0
blank
2014-09-11 22:59:55 +08:00
Lunny Xiao
f2c6aab707
improved doc
2014-09-07 11:50:11 +08:00
Nash Tsai
1213bc14b5
renamed import path
2014-04-11 17:16:43 +08:00
Lunny Xiao
2f86968e94
doc & version
2014-01-25 10:50:42 +08:00
Lunny Xiao
ced50875cf
improved docs
2013-12-31 13:51:55 +08:00
Lunny Xiao
c70b4ad8d3
replace tab to 4 spaces for all codes
2013-12-09 10:29:23 +08:00
Lunny Xiao
c9192441c8
improved docs
2013-11-26 10:41:02 +08:00
Lunny Xiao
36919468aa
improved docs
2013-11-22 16:11:32 +08:00
Lunny Xiao
f9bb47b03d
improved docs
2013-11-22 13:05:10 +08:00
Lunny Xiao
315bbec5e3
improved docs
2013-11-22 10:30:52 +08:00
Lunny Xiao
e1644f7c98
improved docs & delete or private codes
2013-11-22 10:26:01 +08:00
Lunny Xiao
65d079fc2c
improved docs
2013-11-22 09:20:41 +08:00
Lunny Xiao
1c0a92d420
improved doc.go
2013-10-07 12:07:35 +08:00
Lunny Xiao
1baec0ce1a
improved doc.go
2013-10-07 11:15:24 +08:00
Lunny Xiao
d90967009a
fixed maxconns bug
2013-09-01 10:37:46 +08:00