Commit Graph

403 Commits

Author SHA1 Message Date
Lunny Xiao 7e70eb8222
refactor automaptype 2017-04-02 18:02:47 +08:00
Lunny Xiao a0042a7117
refactor 2017-04-01 23:28:35 +08:00
Lunny Xiao 2d5f13a854
small refactors 2017-04-01 23:03:25 +08:00
Lunny Xiao 5789833408
first part to resolve #504 2017-03-27 15:45:15 +08:00
Lunny Xiao 8074f62d8e
move some functions from session.go to session_cols.go and session_convert.go 2017-03-15 09:29:12 +08:00
Lunny Xiao d170089adf
refactor rowsbean 2017-03-14 23:03:27 +08:00
Lunny Xiao 382b85d765
fix #516, #536 2017-02-24 12:45:33 +08:00
Lunny Xiao e8fbd41c16
more Find supports 2017-02-21 19:08:50 +08:00
Lunny Xiao 1bc93ba022
bug fixed for BeforeSet and AfterSet on Find a Map 2017-02-20 17:51:59 +08:00
Lunny Xiao 664a52a6d7
some gofmt & golint fixed 2017-01-09 09:52:23 +08:00
Lunny Xiao 44b70cccf4
add Find ints support & split session into multiple files 2017-01-03 13:31:47 +08:00
Lunny Xiao d75356fc73
bug fixed for gogits/gogs#3928 introduced by 64b3df6 2016-12-24 19:20:19 +08:00
Lunny Xiao c60f2467a9
some golints fixed 2016-12-11 12:45:37 +08:00
Lunny Xiao 7222d6d7b3 some fixed for mssql support 2016-12-01 14:48:40 +08:00
Lunny Xiao 64b3df6e63 bug fixed for temp table name for insert multiple beans 2016-11-23 15:59:16 +08:00
Sergey f31f552026 Getting flag for the column via helper method (#492) 2016-11-12 11:30:16 +08:00
Lunny Xiao f2610e02a1 bug fixed for invoke QueryRow & travis config remove unused 2016-11-12 00:13:12 +08:00
Sergey Kurt 9a143fe45f Fix golint 'comment on exported (method|type) ...' warnings 2016-11-08 18:31:41 +03:00
Sergey Kurt 42d389ec00 Case insensitive string comparison using strings.EqualFold 2016-11-01 14:57:32 +03:00
Lunny Xiao 6e4cb7136a small optimization 2016-10-23 18:56:20 +08:00
Lunny Xiao 99118594d5 resolved #475 2016-10-23 11:19:18 +08:00
Lunny Xiao d7d8ac2914 add session.Conds method 2016-09-29 15:38:09 +08:00
Lunny Xiao 7b5ac89633 add *builder.Builder as pointer to .SQL 2016-09-23 10:08:28 +08:00
Lunny Xiao c9b09da6e1 rename 2016-09-19 11:13:40 +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 5ae5bc982a call after-events after autoincrement id set back to struct field 2016-09-16 20:30:33 +08:00
Lunny Xiao 4c7f48fa65 comment a warn log and added pgx driver support 2016-09-07 09:42:30 +08:00
Lunny Xiao db48d70fd0 bug fixed for table name detect on insert a slice 2016-08-22 12:56:40 +08:00
Lunny Xiao 01a03a3092 resolved #431 2016-07-28 23:26:14 +08:00
Jim Salem ad5c1a5215 Allow the database's timezone to be specified. See https://github.com/go-xorm/xorm/issues/419 2016-07-13 17:57:21 -04:00
Lunny Xiao 964132729e resolved #418 2016-07-11 17:19:43 +08:00
Lunny Xiao ea9a4495ac golint and comments 2016-07-11 11:29:34 +08:00
Lunny Xiao b8b1711cde resolved gogits/gogs#3251 2016-07-11 07:21:12 +08:00
Lunny Xiao 99af33e20b resolved #338 2016-07-09 13:57:42 +08:00
Lunny Xiao bd994cb726 resolved #209 2016-07-09 13:34:34 +08:00
Lunny Xiao 24600f0f5f resolved #131 2016-07-09 12:29:35 +08:00
Lunny Xiao 811443400f resolved #389 2016-07-09 11:36:23 +08:00
Lunny Xiao 5612916fea bug fixed and performance improved for table name 2016-07-09 08:15:53 +08:00
Lunny Xiao 86701ad07e added Sum, Sums, SumsInt methods 2016-07-07 22:34:43 +08:00
Lunny Xiao 9bf34c3189 small optimization 2016-07-07 09:01:13 +08:00
Lunny Xiao 9d17789b4d resolved #400 2016-06-30 16:55:34 +08:00
Victor Gaydov a75b13f07d Move statement methods to statement.go 2016-06-30 15:43:47 +08:00
Lunny Xiao 9225f21f45 bug fixed for json unmarshal 2016-06-30 15:43:28 +08:00
Lunny Xiao 0c3586bc28 small performance optimazition 2016-06-30 15:41:16 +08:00
Victor Gaydov 2f1f32ff17 Support pointers to type aliases
Example:

type MyInt int

type MyStruct struct {
     i1 MyInt   // already works
     i2 *int    // already works
     i3 *MyInt  // didn't work before this commit
}
2016-04-28 13:30:38 +03:00
Victor Gaydov 5d205cad0e Don't panic if v is nil 2016-04-27 20:22:04 +03:00
Lunny Xiao 5c116a34d6 bug fixed #379 2016-04-22 21:43:22 +08:00
Lunny Xiao 0f03658955 some comments, refactors improvements 2016-04-07 08:54:02 +08:00
Lunny Xiao 2b34c682f1 added custom int and string type for primary key support 2016-04-06 22:19:38 +08:00
Lunny Xiao 2f8952d39b serious extends bug fixed & correct logger file path 2016-03-31 22:21:05 +08:00
Lunny Xiao b336fa1880 ILogger interface changed and some golint issues resolved, #367 resolved 2016-03-31 18:19:00 +08:00
Lunny Xiao 7d2967c786 join parameters support & many comments 2016-03-29 09:17:06 +08:00
Lunny Xiao a2a2456fa2 bug fixed for log level and improved json scanner 2016-03-24 22:46:24 +08:00
Lunny Xiao f01db0b5c5 resolved #374 2016-03-23 23:46:07 +08:00
Lunny Xiao 3da8f14fc1 resolved #373 2016-03-23 16:17:08 +08:00
Lunny Xiao 769f6b3ae6 bug fixed 2016-03-16 23:05:25 +08:00
Lunny Xiao 4d6d506dfb bug fixed for Sync2 2016-03-14 09:40:32 +08:00
Lunny Xiao bb8c5c04d7 bug fxied for Sync2 when specify the table name 2016-03-10 15:45:00 +08:00
Lunny Xiao bfb5784ec5 bug fxied for Sync2 when share the same struct between different tables 2016-03-10 09:39:25 +08:00
Lunny Xiao 1045aa020f remove unneccessary warning on sync 2016-03-06 23:22:26 +08:00
Lunny Xiao d92dc9d373 bug resolved for #364 & #365 2016-03-04 17:38:05 +08:00
Lunny Xiao 4fec1167de add schema support for postgres 2016-03-03 11:03:26 +08:00
Lunny Xiao 8c05434162 bug fixed for engine.ShowExecTime 2016-03-01 18:23:33 +08:00
Lunny Xiao 862d4e0586 bug fixed for soft delete and resolved #359 and disable warning when found non-sync tables 2016-02-28 13:44:18 +08:00
Lunny Xiao a0aaa7d72b logging interface changed and resolved #160 #219 #353 2016-02-16 17:18:01 +08:00
Lunny Xiao cb1be6129d bug fixed for soft deleted on order by and limit 2016-02-04 17:46:42 +08:00
Lunny Xiao c4b974fe5c added delete limit support(except mssql) 2016-02-03 11:19:11 +08:00
Lunny Xiao 791d17fed6 some improvments 2016-01-28 16:54:15 +08:00
Lunny Xiao 90c454a96a bug fixed for Sync2 when mysql engine is myisam 2016-01-13 09:58:40 +08:00
Lunny Xiao 025e2a20e5 bug fixed for deleted & alias conflict 2016-01-12 17:19:47 +08:00
Lunny Xiao fad61020e8 resolved #250, #317 2016-01-02 23:55:01 +08:00
Lunny Xiao 069f551119 remove trace code 2015-12-30 17:09:37 +08:00
Lunny Xiao 5ca36c5476 resolved #326 2015-12-30 16:17:33 +08:00
Lunny Xiao b85dbfe3ff resolved #326 2015-12-29 18:16:27 +08:00
Lunny Xiao d5819023e7 added varchar size increment auto sync for mysql in Sync2 2015-12-25 10:35:48 +08:00
Lunny Xiao a8fba4d3d9 resolved #312 2015-12-03 16:11:27 +08:00
Lunny Xiao b36f8ed87e bug fixed for #249 2015-11-26 15:52:25 +08:00
Lunny Xiao d776f5da3e bug fixed: resolved #288 2015-10-26 17:01:46 +08:00
Lunny Xiao 1da71e850a resolved #309 2015-10-26 16:06:38 +08:00
Lunny Xiao 4578668362 bug fixed for extends insert 2015-10-26 14:51:04 +08:00
Lunny Xiao 300379e016 bug fixed #297 2015-10-06 22:56:28 +08:00
Lunny Xiao be4b6f2fae Merge pull request #290 from evalphobia/feature/select-for-update
Added feature for SELECT ... FOR UPDATE
2015-08-30 22:11:58 +08:00
Lunny Xiao 0a5845a61c bug fixed for innerInsert 2015-08-30 09:48:16 +08:00
Lunny Xiao dd30b1fa61 oracle insert primary key set back support 2015-08-28 17:01:41 +08:00
evalphobia e89f74daa0 Added feature for SELECT ... FOR UPDATE 2015-08-28 16:54:19 +09:00
Lunny Xiao adadb47c60 bug fixed for oracle insert 2015-08-26 14:28:59 +08:00
Lunny Xiao a01186e3cd bug fixed for #283 2015-08-24 16:43:58 +08:00
Lunny Xiao 97e7703766 bug fixed & comment trace line 2015-08-12 23:11:45 +08:00
Lunny Xiao 29fd03b318 hack for ql support 2015-08-07 09:55:42 +08:00
Lunny Xiao 6cc6e18143 Merge branch 'master' of github.com:go-xorm/xorm 2015-08-06 14:25:02 +08:00
Lunny Xiao f9e450f348 add AfterSet processor support & resolved #276 2015-08-06 14:24:17 +08:00
evalphobia ebd11048f3 Added feature for storing lastSQL query on session 2015-07-28 13:03:20 +09:00
Lunny Xiao b6a31aa9a3 bug fixed #260 2015-07-28 10:03:32 +08:00
unknown d716685a9e add support sql.NullString sql.NullInt64 ... 2015-07-20 10:43:36 +08:00
Lunny Xiao 2ee7de9fa5 bug fixed for sync2 2015-06-27 12:36:38 +08:00
evalphobia 1ebd50ead5 Added feature to update with null for non pointer value 2015-06-10 23:04:14 +09:00
Lunny Xiao ff6f3b7a8d bug fixed for auto condition on join 2015-05-25 17:49:28 +08:00
Lunny Xiao 439cc27466 added Select method for special select column express 2015-05-24 21:32:27 +08:00
Lunny Xiao fb995894f0 bug fixed 2015-05-20 10:27:01 +08:00
Lunny Xiao a7e7288163 bug fixed 2015-05-18 17:04:25 +08:00