Commit Graph

1238 Commits

Author SHA1 Message Date
Lunny Xiao af0055f8c7
Merge b8373f09d7 into 9242b921d8 2018-04-08 15:41:05 +00:00
Lunny Xiao 9242b921d8
Join add TableName interface support (#874)
* Join add TableName interface support

* add some tests

* Join add struct support

* more tests
2018-04-08 21:54:24 +08:00
Bo-Yi Wu 149e6abf07 fix: gofmt error. (#873) 2018-04-08 08:53:15 +08:00
Lunny Xiao b8dec64610
fix findandcount bug with order (#869) 2018-03-26 10:25:39 +08:00
Lunny Xiao 18b1524be4
add vgo support 2018-03-22 23:26:08 +08:00
m2nlight 11743c1a80 Add NewEngineWithParams method can call SetParams for dialect. The dialect_… (#798)
* Add NewEngine2 method can call SetArguments for dialect. The dialect_mysql support ROW_FORMAT in createtable. (https://github.com/go-xorm/xorm/issues/793)

* Rename NewEngine2 to NewEngineWithParams

* rename SetArguments to SetParams

* rename SetArguments to SetParmas
2018-03-08 09:30:38 +08:00
Lunny Xiao b462eded54
fix sync bug (#857) 2018-03-05 18:01:47 +08:00
Lunny Xiao 60090fa5e0
update README 2018-02-27 11:18:10 +08:00
Lunny Xiao 17ee4be6c1
fix findandcount bug (#853) 2018-02-24 17:08:34 +08:00
Lunny Xiao a4378c8abd
fix bug on findandcount (#852) 2018-02-24 16:12:53 +08:00
Lunny Xiao cea778734c
fix FindAndCount bug with Limit (#851) 2018-02-22 20:24:40 -06:00
Lunny Xiao 2e295feace
Improve schema support on postgres dialect (#845)
* add schema on postgres dialect

* fix to support no specific schema when postgres
2018-02-08 20:43:17 -06:00
Lunny Xiao 430fbe866a
add FindAndCount method (#842) 2018-02-07 07:06:13 -06:00
Lunny Xiao 4293dea67e
add test for find (#841) 2018-02-07 06:00:21 -06:00
Lunny Xiao cd46810bf9
Fix migrate migrationDidRun bug on postgres (#818)
* fix migrate migrationDidRun bug on postgres

* fix missing error handle
2018-01-29 19:49:01 -06:00
Lunny Xiao d4149d1eee
fix Exist bug when using on MSSQL resolved #831 (#832) 2018-01-22 07:32:35 -06:00
Loli caab56ac7e docs(README): fix limit sql (#830) 2018-01-22 05:33:52 -06:00
Lunny Xiao afd1ab91e7
Query add builder support (#829) 2018-01-18 10:09:37 -06:00
Lunny Xiao 5185fdfa1b
add default postgres schema so that it can be changed (#824) 2018-01-09 03:08:26 -06:00
Lunny Xiao 5275c0de3f
add tests for insert custom struct types (#816) 2017-12-27 21:35:52 -06:00
Lunny Xiao 3480244cd2
add test for unique 2017-12-20 16:08:10 +08:00
Lunny Xiao 2bfe0b4d5e
fix Get sql.Nullxx (#805) 2017-12-13 23:04:41 +08:00
Lunny Xiao 26d40bc248
add test for Sync2 2017-12-11 13:49:42 +08:00
Lunny Xiao e0c5a951ff
add tests for SQL with Get variable (#796) 2017-12-07 11:47:45 +08: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 d75e4924db
remove some unnecessary debug log and some refactor (#791) 2017-12-04 11:00:39 +08:00
Lunny Xiao b6ba097a50
improve error string & fix #789 (#790) 2017-12-02 14:39:56 +08:00
Lunny Xiao 16930c1be7
update READMEs 2017-12-02 10:47:03 +08:00
Lunny Xiao 3bb2fa9c85
add lost Prepare 2017-11-29 10:03:54 +08:00
Lunny Xiao a6cc098689
QueryString and QueryInterface supports composite conditions (#784) 2017-11-20 16:14:27 +08:00
mzmuer 936cca7c69 mysql add column comment (#783) 2017-11-20 15:20:28 +08:00
Daniel Lee 84fd68deb7 Postgres dialect parse password with spaces (#775) (#779)
Fixes #775 This fixes two problems - the postgres dialect can parse a
connection string in url format that has a password with spaces. If an
error occurs the Parse func returns an error instead of panicking.
2017-11-17 23:41:52 +08:00
Lunny Xiao 4e88774eee
update contributing (#780) 2017-11-17 21:17:20 +08:00
Lunny Xiao de4b2f9c8e
Query now could work with Where, In, SQL and other condition methods (#776) 2017-11-15 11:34:59 +08:00
ming a620571388 Add a missing dot (#767) 2017-11-01 08:41:20 +08:00
Lunny Xiao 23049ffafa
add PingContext support for go1.8+ (#766) 2017-10-31 17:30:01 +08:00
Lunny Xiao b8373f09d7
improve Load find 2017-10-31 16:51:22 +08:00
Lunny Xiao 865979f716
add support for map[string]interface{} as condition on Update and Where (#764) 2017-10-30 11:07:56 +08:00
Lunny Xiao 2b06f05d40
fix extends tag 2017-10-25 23:54:36 +08:00
Lunny Xiao 1d5bc623f3
improve some functions 2017-10-25 23:54:36 +08:00
Lunny Xiao 23c6999de8
merge EagerGet and EagerFind to Load 2017-10-25 23:54:35 +08:00
Lunny Xiao 3538ce1752
improve belongs_to 2017-10-25 23:54:35 +08:00
Lunny Xiao 567b13889b
rename EagerLoad -> EagerGet 2017-10-25 23:54:35 +08:00
Lunny Xiao 0abbd9fb91
improved get cascade bean 2017-10-25 23:54:35 +08:00
Lunny Xiao 590bb1015b
add FindPtr for belongs_to 2017-10-25 23:54:35 +08:00
Lunny Xiao c68711d9a5
improved test for find 2017-10-25 23:54:34 +08:00
Lunny Xiao 8490767f1e
set column value to belongs_to bean when cascade is disabled 2017-10-25 23:54:34 +08:00
Lunny Xiao 8a3fa4464d
add cascade find test and vendor folder 2017-10-25 23:54:34 +08:00
Lunny Xiao 557d5a4101
implement simple belongs_to tag 2017-10-25 23:54:34 +08:00