Commit Graph

37 Commits

Author SHA1 Message Date
Lunny Xiao 9aeff6f3a8
Add oracle driver 2024-04-02 14:50:34 +08:00
Lunny Xiao 70c6978fc4 Use github.com/microsoft/go-mssqldb instead of old mssqldb repository (#2386) (#2390)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2386
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2390
2024-01-16 07:56:04 +00:00
Lunny Xiao 5d57ef92f5 Upgrade minimal version from go 1.16 to go 1.18 (#2388)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2388
2023-12-31 13:56:14 +00:00
Lunny Xiao 3626de1459 mod tidy (#2303)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2303
2023-07-23 01:31:59 +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 f9a6990ecb Refactor orderby and support arguments (#2150)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2150
2022-05-31 11:00:28 +08:00
Lunny Xiao 303b1aeb77 Upgrade dependencies modules (#2078)
- github.com/goccy/go-json v0.7.4 -> v0.8.1
- github.com/json-iterator/go v1.1.11 -> v1.1.12
- github.com/mattn/go-sqlite3 v1.14.8 -> v1.14.9
- modernc.org/sqlite v1.11.2 -> v1.14.2

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2078
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-12-06 13:13:47 +08:00
Lunny Xiao c29b9649a9 Add dameng support (#2007)
driver: https://gitee.com/travelliu/dm
docker: https://download.dameng.com/eco/dm8/dm8_docker.tar

fix #1837

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2007
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-24 13:46:08 +08:00
Lunny Xiao 0b3cc25a10 Add pgx driver support (#1795)
Fix #858

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1795
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-05 14:04:11 +08:00
Lunny Xiao a7e010df2d refactor insert condition generation (#1998)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1998
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-20 13:46:24 +08:00
raizen666 5950824e37 Support build flag go-json to replace default json (#1982)
`go build -tags=gojson` to use `github.com/goccy/go-json` as default json handler

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1982
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: raizen666 <raizen666@noreply.gitea.io>
Co-committed-by: raizen666 <raizen666@noreply.gitea.io>
2021-07-19 12:49:50 +08:00
Lunny Xiao a38b1fddb3 Add tests for github.com/shopspring/decimal support (#1977)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1977
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-07 17:00:58 +08:00
Lunny Xiao d0219c37a8 Support build flag jsoniter to replace default json (#1916)
So you can `go build -tags=jsoniter` to use `github.com/json-iterator/go` as default json handler

Fix #1744

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1916
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-06-06 14:20:43 +08:00
Lunny Xiao 60cc3eaaf0 Unsigned Support (#1889)
This PR add support to MySQL, for other databases unsigned type will be downgrade to the related signed type.

Replace #1810

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1889
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-11 16:47:04 +08:00
Lunny Xiao e660414278 Support modernc.org/sqlite (#1850)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1850
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-03-15 23:34:33 +08:00
Lunny Xiao 7cd51d58fa Upgrade builder to v0.3.8 (#1855)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1855
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-01-28 10:56:03 +08:00
Lunny Xiao 318102c9ff Add params for mssql to allow redefine varchar as nvarchar or char as nchar (#1741)
Update drone test for mssql nvarchar

Add params for mssql to allow redefine varchar as nvarchar or char as nchar

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1741
2020-07-18 08:01:27 +00:00
Lunny Xiao cc7d219065 Upgrade some dependencies (#1718)
Upgrade some dependencies

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1718
2020-06-18 11:36:19 +00:00
tomoyamachi 2ece3bacbb Oracle : Local Naming Method (#1515)
go mod tidy

stop using xorm.io/core

Merge branch 'master' into fix-oracle-db

revert a goracle parser function

add TestParseOracleConnStr

Oracle : Local Naming Method

Co-authored-by: Tomoya AMACHI <tomoya.amachi@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1515
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-03-23 02:03:04 +00: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 049a28cfb7 Add leveldb cache store (#1545)
Add leveldb cache store

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1545
2020-02-25 12:22:21 +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 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
Lunny Xiao d6963b7d42
fix arg conversion (#1441)
* fix arg conversion

* fix bugs

* fix bug on postgres

* use traditional positional parameters on insert into select

* remove unnecessary tests
2019-09-28 18:02:19 +08:00
Lunny Xiao 9872e133cf
upgrade core (#1440) 2019-09-28 10:55:12 +08:00
Lunny Xiao 6d11913765
Add support subquery on SetExpr (#1428)
* add support subquery on SetExpr

* fix tests
2019-09-23 23:34:26 +08:00
Lunny Xiao 201839c092
fix go mod (#1427) 2019-09-23 00:13:52 +08:00
Lunny Xiao 57a7e4421e
Use strings.Builder instead of builder.StringBuilder (#1417)
* use strings.Builder instead of builder.StringBuilder

* fix dependency

* fix dependency
2019-09-06 22:15:04 +08:00
Lunny Xiao ce79b1cf28 fix get customize type bug (#1382) 2019-08-05 17:05:42 +08:00
Lunny Xiao f3e6c3a26b
fix go mod (#1350) 2019-07-07 20:06:42 +08:00
Lunny Xiao c9b14f9487
move depends package from github.com to customize domain (#1327) 2019-06-17 13:38:13 +08:00
techknowlogick 617e0ae295 clean up go modules (#1260) 2019-03-31 19:39:43 +08:00
Lunny Xiao af992d69a7
update go mod (#1212) 2019-01-24 21:13:39 +08:00
Lunny Xiao 611c31fa18
update go mod (#1211) 2019-01-24 21:04:41 +08:00
Lunny Xiao 18f6311ad1
Update go mod (#1210)
* update go mod dependency files

* add go mod build on ci
2019-01-24 15:20:02 +08:00
Lunny Xiao 1f39c590c6
update go.mod 2018-10-23 17:52:55 +08:00