Commit Graph

369 Commits

Author SHA1 Message Date
Lunny Xiao 4c2b0e0f55 Add context for dialects (#1558)
More improvements

Add context for dialects

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1558
2020-02-27 15:31:05 +00:00
Lunny Xiao e2f9100419 Move tag parser related codes as a standalone sub package (#1547)
Fix sliceEq

fix tests

Move tag parser related codes as a standalone sub package

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1547
2020-02-27 03:58:31 +00:00
Lunny Xiao aa522f7d98 Improve code (#1552)
Change filters

Fix test

add more tests on drone

add more tests on drone

Improve code

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1552
2020-02-27 03:33:40 +00:00
Lunny Xiao 02c8a4b25d Move caches to manager (#1553)
Move caches to manager

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1553
2020-02-27 03:12:25 +00:00
Lunny Xiao 390effb8a4 Move zero functions to a standalone package (#1548)
Remove depreciated functions and move some functions to schemas

Move zero functions to a standalone package

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1548
2020-02-26 12:45:10 +00:00
Lunny Xiao cc33b2d305 Fix join table name quote bug (#1534)
Fix test

Fix test

Add new Quoter object to handle quote

Fix join table name quote bug

Move reserve words related files into dialects sub package (#1544)

Move reserve words related files into dialects sub package

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1544

Fix mssql quote (#1535)

Fix some quotes

Fix mssql quote

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

Fix int time deleted bug (#1539)

Fix panic

Fix test

Fix test for mssql time

Add sql type check on deleted cond

Fix int time deleted bug

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1539

Add test for mysql8.0 (#1538)

Fix pk order on test

Add test for mysql8.0

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1538

Add test for join limit (#1536)

Add test for join limit

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1536

Improve drone (#1537)

Fix drone

Improve drone

* use traditional positional parameters on inser...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1537

Fix slice of struct not cache bug (#895)

Fix failure caused by nil bean

Judge both type of struct and pointer in case of out-of-range

Fix issue #894

Add test for join subquery (#1528)

Fix test

Fix subquery with schema

Add test for join subquery

Add makefile (#1531)

Fix drone

Fix ci

Add deps

Improve drone

Fix envs

Add makefile

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1531

Add password for postgres drone image (#1530)

Add password for postgres drone image

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1530

format time when sqlTypeName is core.Varchar (#1026)

fix time test

add test for time format

sign codes according to contributing rules.

format time when sqlTypeName is core.Varchar. Same with core.DateTime or core.TimeStamp

Add test for second insert error (#1527)

Add test for second insert error

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1527

Add tests for table name (#1517)

add tests for table name

Fix test (#1526)

Fix test

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1526

Fix test (#1526)

Fix test

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1526

Fix wrong warning log on autoincrement column when sync table (#1525)

improve doc

Fix wrong warning log on autoincrement column when sync table

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1525

Fixed Join strings on func Exist (#1520)

fix test

fixed Join strings on func Exist

Co-authored-by: Tomofumi Kusana <tkusana@morisawa.co.jp>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1520

For nullable columns, store nil values as NULL (#531)

Merge branch 'master' into jcsalem/fix/nil_ptr_is_nullable

fix bug when buffersize with iterate (#941)

Merge branch 'master' into lunny/fix_buffer_iterate

Exclude schema from index name (#1505)

Merge branch 'master' into fix-schema-idx

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Exclude schema from the index name

Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1505

fix test

fix bug

fix bug when buffersize with iterate

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Fix update with Alias (#1455)

Co-authored-by: Guillermo Prandi <guillep2k@noreply.gitea.io>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/941

fix update map with version (#1448)

fix test

fix update map with version

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Fix update with Alias (#1455)

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1448

Exclude schema from index name (#1505)

Merge branch 'master' into fix-schema-idx

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Exclude schema from the index name

Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1505

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

For nullable columns, store nil values as NULL

fix vet

fix drone lint

remove go1.10 test on drone

Fix update with Alias (#1455)

Improve c...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1534
2020-02-25 00:01:36 +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 eabfb48b5d Fix int time deleted bug (#1539)
Fix panic

Fix test

Fix test for mssql time

Add sql type check on deleted cond

Fix int time deleted bug

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1539
2020-02-21 12:17:40 +00:00
Lunny Xiao 22aef2cd32 Add makefile (#1531)
Fix drone

Fix ci

Add deps

Improve drone

Fix envs

Add makefile

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1531
2020-02-21 01:38:47 +00:00
Lunny Xiao d874b64b71 format time when sqlTypeName is core.Varchar (#1026)
fix time test

add test for time format

sign codes according to contributing rules.

format time when sqlTypeName is core.Varchar. Same with core.DateTime or core.TimeStamp

Add test for second insert error (#1527)

Add test for second insert error

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1527

Add tests for table name (#1517)

add tests for table name

Fix test (#1526)

Fix test

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1526

Fix test (#1526)

Fix test

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1526

Fix wrong warning log on autoincrement column when sync table (#1525)

improve doc

Fix wrong warning log on autoincrement column when sync table

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1525

Fixed Join strings on func Exist (#1520)

fix test

fixed Join strings on func Exist

Co-authored-by: Tomofumi Kusana <tkusana@morisawa.co.jp>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1520

For nullable columns, store nil values as NULL (#531)

Merge branch 'master' into jcsalem/fix/nil_ptr_is_nullable

fix bug when buffersize with iterate (#941)

Merge branch 'master' into lunny/fix_buffer_iterate

Exclude schema from index name (#1505)

Merge branch 'master' into fix-schema-idx

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Exclude schema from the index name

Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1505

fix test

fix bug

fix bug when buffersize with iterate

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Fix update with Alias (#1455)

Co-authored-by: Guillermo Prandi <guillep2k@noreply.gitea.io>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/941

fix update map with version (#1448)

fix test

fix update map with version

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Fix update with Alias (#1455)

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1448

Exclude schema from index name (#1505)

Merge branch 'master' into fix-schema-idx

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

fix vet

fix drone lint

remove go1.10 test on drone

Exclude schema from the index name

Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1505

SetExpr support more go types (#1499)

Improve tests

SetExpr support more go types

fix vet

fix drone lint

remove go1.10 test on drone

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1499

For nullable columns, store nil values as NULL

fix vet

fix drone lint

remove go1.10 test on drone

Fix update with Alias (#1455)

Improve ci tests (#1477)

Rewrite Engine.QuoteTo() to accept multi-part identifiers (#1476)

Support local sql log (#1338)

Fix go mod and update version (#1460)

Move github.com/go-xorm/xorm to xorm.io/xorm (#1459)

add support custom type Nullfloat64 (#1450)

fix bug when query map condtion with no quote (#1449)

Don't warn when bool column default is 1 but not true (#1447)

* don't warn when bool column default is 1 but not true

* fix default case sensitive

Fix sync2 with custom table name (#1445)

* fix sync2 with custom table name

* fix bug on postgres

* fix bug on postgres

fix bug when update with setexpr (#1446)

add tidb tests on drone ci (#1444)

improve sync2 (#1443)

Fix wrong dbmetas (#1442)

* add tests for db metas

* add more tests

* fix bug on mssql

Fix default value parse bugs (#1437)

* fix default value

* fix default value tags

* fix postgres default

* fix default on postgres

* fix default on postgres

* fix mssql default

fix arg conversion (#1441)

* fix arg conversion

* fix bugs

* fix bug on postgres

* use traditional positional parameters on insert into select

* remove unnecessary tests

upgrade core (#1440)

add tests (#1439)

add go1.13 tests on drone (#1416)

Fix bug on insert where (#1436)

* fix bug on insert where

* fix bug

* fix lint

fix bug when insert multiple slices with customize table name (#1433)

* fix bug when insert multiple slices with customize table name

* fix tests on mssql

* fix tests

fix insert where with bool bug on mssql (#1432)

fix setexpr missing big quotes (#1431)

* fix setexpr missing big quotes

* fix tests

* fix tests

Add support subquery on SetExpr (#1428)

* add support subquery on SetExpr

* fix tests

fix go mod (#1427)
...

Co-authored-by: DarthPestilane <wangrui.superman@gmail.com>
Co-authored-by: kusana <kusana@noreply.gitea.io>
Co-authored-by: Guillermo Prandi <guillep2k@noreply.gitea.io>
Co-authored-by: Guillermo Prandi <guillep2k@noreply@gitea.io>
Co-authored-by: yudppp <yu.d.ppp@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1026
2020-02-20 08:16:13 +00:00
Lunny Xiao 189e272774 Add tests for table name (#1517)
add tests for table name

Fix test (#1526)

Fix test

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1526
2020-02-20 07:18:44 +00:00
Guillermo Prandi 29b162a3ab Rewrite Engine.QuoteTo() to accept multi-part identifiers (#1476) 2019-11-12 00:48:20 +00:00
Lunny Xiao 1735906dcc Support local sql log (#1338) 2019-10-21 03:42:26 +00:00
Lunny Xiao 98db3ef013
improve sync2 (#1443) 2019-09-30 16:32:57 +08:00
Lunny Xiao a5702e52b5
Fix default value parse bugs (#1437)
* fix default value

* fix default value tags

* fix postgres default

* fix default on postgres

* fix default on postgres

* fix mssql default
2019-09-29 12:31:06 +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 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
BetaCat 4b0ff8ad27 remove QuoteStr() usage in dialects (#1364) 2019-07-24 13:22:14 +08:00
BetaCat 18b32486cf remove QuoteStr() usage (#1360) 2019-07-24 09:41:06 +08:00
Marián Skrip 4c806608ab Allow adding prefix for fields with `extends` tag (#1284)
Added new syntax like `extends('Prefix')` to enable matching all
extended fields as 'PrefixFieldName'.

Close go-xorm/xorm#1270
2019-06-23 10:44:44 +08:00
Lunny Xiao c9b14f9487
move depends package from github.com to customize domain (#1327) 2019-06-17 13:38:13 +08:00
Lunny Xiao 7c4e044547
fix show SQL when set logger (#1315) 2019-06-06 14:26:23 +08:00
Masaki.Yamamoto 8a61b3a8a9 Fix spelling inconsistency (#1317) 2019-06-06 10:55:52 +08:00
Lunny Xiao 5750e3f90a
Add context support (#1193)
* add context support

* improve pingcontext tests
2019-01-20 11:01:14 +08:00
Zsombor a6300f2a45 Fixing issue from go-gitea/gitea #5728 (#1192)
* Format boolean values to true/false even when it is returned as byte-slice,
* Fix the sequence generation, the proper sequence name is used (instead of 'table_id_seq'), and fix the next value be max+1 always
2019-01-16 11:26:49 +08:00
Zsombor 1cd2662be9 Fix exporting into Postgres, problems: (#1186)
* UUID and BOOL type shouldn't have a length field
 * Incorrect quoting cause that the column names are selected instead of the column values
2019-01-09 16:18:50 +08:00
Lunny Xiao 270035c70f
Add more methods for EngineInterface (#1091)
* add more methods for EngineInterface

* more interfaces
2018-09-07 11:01:18 +08:00
Lunny Xiao 1eee8a367e
fix #997 group by (#1065) 2018-08-09 14:37:44 +08:00
Lunny Xiao 4ce90f9a62
Exec support builder (#1064) 2018-08-09 13:09:54 +08:00
Lunny Xiao ad69f7d8f0
performance improvement via string builder (#1036) 2018-07-11 08:59:00 +08:00
Lunny Xiao 12e0367559
add more tests for Sync2 (#925) 2018-05-04 10:51:34 +08:00
Lunny Xiao 9680df5445
remove trace code 2018-05-02 13:41:40 +08:00
Lunny Xiao e3550c7969
fix some bug on extends find (#916) 2018-04-29 19:58:25 +08:00
Lunny Xiao 636ccefbc7
fix update map with table name (#888)
* fix update map with table name

* fix bug update map when cache enabled

* refactor cacheInsert

* fix cache test
2018-04-11 23:09:46 +08:00
Lunny Xiao bd20c37bfb
Add SetSchema for engine (#876)
* add SetSchema for engine

* fix user

* fix postgres with schema

* fix test

* fix test

* fix test

* fix tablename

* refactor tableName

* fix schema support

* improve the interface of EngineInterface
2018-04-10 09:50:29 +08:00
Bo-Yi Wu 0b841796fa fix: add const value for public scheam name of postgres. (#877) 2018-04-09 14:57:11 +08:00
Bo-Yi Wu 468154dfd5 chore(postgres): support add schema as prefix of table name (#875)
* chore(postgres): support add schema as prefix of table name

* fix: ignore DefaultPostgresSchema

* docs: [ci skip] add desc for postgres.
2018-04-08 23:49:59 +08:00
Lunny Xiao 430fbe866a
add FindAndCount method (#842) 2018-02-07 07:06:13 -06:00
Lunny Xiao b6ba097a50
improve error string & fix #789 (#790) 2017-12-02 14:39:56 +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
Lunny Xiao de4b2f9c8e
Query now could work with Where, In, SQL and other condition methods (#776) 2017-11-15 11:34:59 +08:00
Lunny Xiao 109cb1a7d0 Add support Engine Group (#748)
* add support group engine

* revert code

* add NewGroup function

* add engine group policy

* rename file name

* modify policy interface

* remove Init function from policy interface

* refactor Group Policy

* rename and comments

* rename and bug fix for WeightRoundRobinPolicy

* modify Slave function

* modify Slave function and add LeastConnPolicy

* use original Engine and Session

* remove unused count variables

* fix bug on NewEngineGroup

* remove unused method

* improve range and refactor

* add some comments and refactor

* implement GroupPolicy of GroupPolicyHandler

* refactor

* simple code

* add tests support for EngineGroup & fix some bugs

* improve the NewEngineGroup interface

* change the default policy of engine group

* fix some tests
2017-10-16 15:28:13 +08:00
Lunny Xiao 7dc8e7623c fix time tag utc (#742)
* fix time tag utc

* rename NowTime -> nowTime
2017-09-30 08:59:13 +08:00
Lunny Xiao c9690500fa add buffer Iterate support (#729) 2017-09-19 20:59:41 +08:00
Lunny Xiao 763e1b21e6 Add query interface (#695)
* add query interface

* fix tests of query interface
2017-08-27 22:09:31 +08: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 a10b5aba4b reduce sessions on Sync (#685) 2017-08-20 17:05:42 +08:00
Lunny Xiao c2e915ffc1
fix typo 2017-07-31 20:26:13 +08:00
Lunny Xiao 4524e40dda add NotIn and more tests for tag (#665) 2017-07-27 17:48:19 +08:00
Lunny Xiao f1aebd5729 hide all undocument variables on session (#660) 2017-07-27 13:32:35 +08:00
Lunny Xiao 774f83c1bc add Exist functions (#640) 2017-07-14 09:20:13 +08:00
Oleh Herych 682b827c7e More clear log (#638)
I don't see `nil` in log. I suggest the next changes 

*Before*
```
INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [59639fb56d9d9437b707a434 58a313719fee7b336da70c45 Chocolate Mousse Torte fsqi 51339970   Dessert Seasonal berry sauce 0 0 0 1 false 2017-07-10 18:39:33 2017-07-10 18:39:33]
```

*After*
```
INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{"59639ec16d9d943782ce2f6c", "58a313719fee7b336da70c45", "Chocolate Mousse Torte", "fsqi", "51339970", "", "", "Dessert", "Seasonal berry sauce", 0, 0, 0, 1, false, "2017-07-10 18:35:29", "2017-07-10 18:35:29"}
```
2017-07-11 09:16:07 +08:00
Mamoru Murakami 39a812d59d Topic/fix cache uint (#635)
* modify cache_test for issues #330

* fix bugs cache key when pk is defined as uint (#330)

* add comment
2017-07-06 13:03:06 +08:00
Lunny Xiao 2af18acf72 add CondDeleted method (#620) 2017-06-15 20:09:46 +08:00
Lunny Xiao 233706969a
add SumInt method 2017-06-12 16:33:11 +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 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 942887dea0 fix time issues and add some tests for time (#604)
* fix time issues and add some tests for time

* fix tests bug

* fix tests

* some fixes with tests and added mssql support

* fix tests
2017-06-02 16:12:50 +08:00
Lunny Xiao 7154d2c42d add more tests (#595)
* add more tests

* fix tests
2017-05-30 20:33:30 +08:00
Lunny Xiao e561396c0b
add more tests for schema 2017-05-27 22:14:13 +08:00
Lunny Xiao 1ff7790a2e
fix bug for int64 id tag 2017-05-17 17:05:36 +08:00
Lunny Xiao d52a762fba
remove unused code 2017-04-21 00:02:48 +08:00
Lunny Xiao 564b75cdc0
bug fix #572 2017-04-20 23:35:48 +08:00
Lunny Xiao 71e934b5c6
remove trace code 2017-04-12 14:35:29 +08:00
Lunny Xiao e9dc216344
bug fixed #565 2017-04-11 19:38:54 +08:00
Lunny Xiao aae045f9aa
fix #563 2017-04-10 19:45:00 +08:00
Lunny Xiao 7e70eb8222
refactor automaptype 2017-04-02 18:02:47 +08:00
Lunny Xiao 5497f76c84
add QueryString support 2017-04-01 10:35:27 +08:00
Lunny Xiao bda5f17e01 Handle xorm tags via tagHandler prepared for customerize tag support (#551)
* handle xorm tags via tagHandler prepared for customerize tag support

* add some comments and improvements
2017-03-30 10:39:38 +08:00
Lunny Xiao c352f30dd2
improved SQL log 2017-03-17 20:30:00 +08:00
Lunny Xiao 19f6dfc2e8
bug fix for dump to postgres 2017-02-10 09:55:37 +08:00
Shintaro Kaneko 71190ff044 Apply the given location instead of engine.location (#435) 2017-01-25 19:48:19 +08:00
Lunny Xiao 0b209de773
Merge branch 'master' of github.com:go-xorm/xorm 2017-01-25 18:59:59 +08:00
Lunny Xiao 57bcb65078
bug fix for get sqlite meta informations 2017-01-22 17:17:55 +08:00
n4mine 7c70e8caa9 fix: typo (#524) 2017-01-21 22:51:25 +08:00
Lunny Xiao c360c20aa5
dump support bool 2017-01-20 10:12:06 +08:00
Lunny Xiao 263f9d3fa5
bug fixed for dump 2017-01-18 23:08:43 +08:00
Lunny Xiao b1bbae3949
Let DumpAll support dump to another database 2017-01-18 20:14:20 +08:00
Lunny Xiao 664a52a6d7
some gofmt & golint fixed 2017-01-09 09:52:23 +08:00
Lunny Xiao 2189b36884
fix dump to other databases 2017-01-03 14:44:30 +08:00
Lunny Xiao c60f2467a9
some golints fixed 2016-12-11 12:45:37 +08:00
Sergey Kurt a618e46460 Columns string generation via bytes.Buffer 2016-11-07 14:47:42 +03:00
Lunny Xiao bccd20a7c5 resolved #474 2016-10-23 10:24:29 +08:00
Lunny Xiao cd9eef351a bug fixed for errorf 2016-10-19 16:55:38 +08:00
yyoshiki41 47def2ea58 Remove quoteColumn method 2016-10-05 00:39:08 +09:00
sawada_shinnosuke 1b423b7807 use defer prepareing for panic/recover 2016-09-26 12:44:23 +09:00
Lunny Xiao 7b5ac89633 add *builder.Builder as pointer to .SQL 2016-09-23 10:08:28 +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 db48d70fd0 bug fixed for table name detect on insert a slice 2016-08-22 12:56:40 +08:00
Shintaro Kaneko edda763c13 Modify extract LOCALE sign from tags 2016-08-05 10:05:05 +00:00
yyoshiki41 9e0ab5cfbd Remove unused method 2016-07-19 16:17:50 +09: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 ea9a4495ac golint and comments 2016-07-11 11:29:34 +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 7d0f249cf5 resolved #416 2016-06-30 16:35:04 +08:00
yyoshiki41 800f4b35db Fixed driver-name logging 2016-06-30 15:45:02 +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