32 Commits

Author SHA1 Message Date
9b1c2c8064 Fixes #1586: QueryBuilder::buildLikeCondition() will now escape special characters and use percentage characters by default 2013-12-29 13:04:02 -05:00
454174a688 added NOT operator for db, elasticsearch, redis
issue #1523
2013-12-17 01:49:10 +01:00
21014b4064 swapped docs and Exception to type InvalidParamException 2013-11-26 04:56:07 +02:00
b6b2689853 Merge branch 'master' into elasticsearch
* master:
  Fixes #1253
  Fixes #1310: ActiveRelation does not preserve order of items on find via() and viaTable()
  fixed limit/offset for sqlite,mysql and cubrid
  fixed test break.
  Fixed test break.
  Fixes #1301: fixed scenario generation when there are "except" scenarios.
  support for batch insert in sqlite older than 3.7.11
  Fixes #1298: supporting route with trailing slash.
  Fixes #1296: stricter check of dashes in route.
  Fixes #1307: move batchInsert() to base class.
  Update apps-advanced.md
2013-11-24 20:51:26 +01:00
69fa7bab6b Fixes #1307: move batchInsert() to base class. 2013-11-23 20:44:36 -05:00
58b1538b39 refactored elasticsearch Querybuilder build conditions 2013-11-24 02:00:27 +01:00
e15860c3fa more on elasticsearch Query interface added facet search 2013-11-24 00:30:36 +01:00
65338972c7 refactored ActiveRecord classes to use Interfaces and traits
this allows us to implement other activerecord implementations based on
NoSQL dbms
2013-11-13 18:42:50 +01:00
415144489e made querybuilder condition methods public 2013-11-02 21:36:48 +01:00
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
43d392d8d2 porting the fix from https://github.com/yiisoft/yii/pull/2894 2013-09-23 07:18:42 -04:00
523a63f576 Added TYPE_BIGPK to Schema 2013-09-15 15:08:43 +04:00
2e01c06a4b Fixes #865. 2013-09-10 08:15:46 -04:00
f4fb2d94ef finalizing cubrid Schema 2013-09-05 17:29:47 +02:00
7fa81949bf various documentation changes 2013-09-01 19:47:26 +02:00
4d84e09479 typo in query builder, fixes #832 2013-08-30 16:57:11 +02:00
6dba4da3ed Fixes #828: refactored QueryBuilder::build() 2013-08-29 16:47:48 -04:00
f941bfee60 Fixes #820. 2013-08-27 08:09:15 -04:00
1f5d77790f Fixed test breaks. 2013-07-22 10:54:43 -04:00
20bde29f58 Added typecasting for SQL insertion and update. 2013-07-22 10:47:22 -04:00
03e07f4340 cleaned up "use" statements. 2013-06-14 22:42:55 -04:00
cc0fe1b02c code style fixes 2013-06-13 02:16:48 +04:00
2c02bc918d migrate command, primary key 2013-06-10 20:30:31 +06:00
c338d4b76b Updated code styling and added braces. 2013-06-09 23:23:51 +02:00
f667b5785b - Added drop/add primary key methods to Command.php
- Added drop/add primary key methods to QueryBuilder.php
- Added mysql specific dropPrimarykey method
- Added sqlite specific dropPrimarykey and addPrimaryKey methods
- Added uint testing for dropPrimarykey and addPrimaryKey methods
- Corrected postgresql column types, by adding length and precision
2013-06-09 18:27:09 +02:00
a977d8208e Replaced dropConstraint with dropPrimarykey method. 2013-06-09 14:10:45 +02:00
3796db7d00 - Ported addPrimaryKey and created dropConstraint.
- The dropConstraint method can be used both for dropPrimaryKey and dropForeignKey
2013-06-09 11:00:15 +02:00
3680a4781d removed unneccessary brackets 2013-06-03 08:28:14 +02:00
7117a6752b Added phpdoc about precision constraints for abstract db types 2013-06-02 22:58:42 +02:00
5c56c0fc02 Better flexibility for abstract db types
Feature was requested in yiisoft/yii#765
2013-06-02 16:05:11 +02:00
1f9a46850c MSSQL initial query builder. 2013-05-22 22:25:49 +06:00
f72105166c reorganized the main repo to satisfy PSR-0. 2013-05-21 21:19:05 -04:00