Ivan Pomortsev
a9286b899c
Update QueryBuilder.php
...
Change <code>array_reduce</code> with anonimous function variant to easy string collection from pieces of unions.
11 years ago
Ivan Pomortsev
7da3449d09
Update QueryBuilder.php
...
Change buildUnion method to be ready to accept parameters in <code>['all' => $all, 'query' => $query]</code> format for division to "UNION" and "UNION ALL" constructions.
11 years ago
Ivan Pomortsev
5d3fd930d8
Update QueryBuilder.php
...
Delete some spaces from result string.
11 years ago
Ivan Pomortsev
1ea895e22b
Update QueryBuilder.php
...
Fixed some errors – syntax with ";" after closure function and also moved building of unions queries into this function.
11 years ago
Ivan Pomortsev
12cbaf90b5
Update QueryBuilder.php
...
Change using of implode to convert array of queries to union to array_reduce. Result of this changing is that code feel difference between two selects that connects with UNION and two selects that connects with UNION ALL.
11 years ago
Qiang Xue
5b3fa9f5ba
Fixes #2091 : `QueryBuilder::buildInCondition()` fails to handle array not starting with index 0
11 years ago
Qiang Xue
febce76397
fixed build break and fixed doc about exists/not exists.
11 years ago
Qiang Xue
7d08a09620
Fixes #1809 : Added support for building "EXISTS" and "NOT EXISTS" query conditions
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
9b1c2c8064
Fixes #1586 : `QueryBuilder::buildLikeCondition()` will now escape special characters and use percentage characters by default
11 years ago
Carsten Brandt
454174a688
added NOT operator for db, elasticsearch, redis
...
issue #1523
11 years ago
Panagiotis Moustafellos
21014b4064
swapped docs and Exception to type InvalidParamException
11 years ago
Qiang Xue
69fa7bab6b
Fixes #1307 : move batchInsert() to base class.
11 years ago
Carsten Brandt
58b1538b39
refactored elasticsearch Querybuilder build conditions
11 years ago
Carsten Brandt
e15860c3fa
more on elasticsearch Query interface added facet search
11 years ago
Carsten Brandt
65338972c7
refactored ActiveRecord classes to use Interfaces and traits
...
this allows us to implement other activerecord implementations based on
NoSQL dbms
11 years ago
Carsten Brandt
415144489e
made querybuilder condition methods public
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Qiang Xue
43d392d8d2
porting the fix from https://github.com/yiisoft/yii/pull/2894
11 years ago
Alexander Makarov
523a63f576
Added TYPE_BIGPK to Schema
11 years ago
Qiang Xue
2e01c06a4b
Fixes #865 .
11 years ago
Carsten Brandt
f4fb2d94ef
finalizing cubrid Schema
11 years ago
Carsten Brandt
7fa81949bf
various documentation changes
11 years ago
Carsten Brandt
4d84e09479
typo in query builder, fixes #832
11 years ago
Qiang Xue
6dba4da3ed
Fixes #828 : refactored QueryBuilder::build()
11 years ago
Qiang Xue
f941bfee60
Fixes #820 .
11 years ago
Qiang Xue
1f5d77790f
Fixed test breaks.
11 years ago
Qiang Xue
20bde29f58
Added typecasting for SQL insertion and update.
11 years ago
Qiang Xue
03e07f4340
cleaned up "use" statements.
11 years ago
Alexander Makarov
cc0fe1b02c
code style fixes
11 years ago
sergey Gonimar
2c02bc918d
migrate command, primary key
11 years ago
gevik
c338d4b76b
Updated code styling and added braces.
11 years ago
gevik
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
11 years ago
gevik
a977d8208e
Replaced dropConstraint with dropPrimarykey method.
11 years ago
gevik
3796db7d00
- Ported addPrimaryKey and created dropConstraint.
...
- The dropConstraint method can be used both for dropPrimaryKey and dropForeignKey
11 years ago
Carsten Brandt
3680a4781d
removed unneccessary brackets
11 years ago
Carsten Brandt
7117a6752b
Added phpdoc about precision constraints for abstract db types
11 years ago
Carsten Brandt
5c56c0fc02
Better flexibility for abstract db types
...
Feature was requested in yiisoft/yii#765
12 years ago
resurtm
1f9a46850c
MSSQL initial query builder.
12 years ago
Qiang Xue
f72105166c
reorganized the main repo to satisfy PSR-0.
12 years ago
resurtm
c98628d42e
CS fixes.
12 years ago
Qiang Xue
0d814fa523
Moved "framework" to "iii".
12 years ago
Qiang Xue
55cc8813c7
Fixes issue #171
12 years ago
Alexander Kochetov
684295fe0b
Fixes
12 years ago
Alexander Kochetov
48d04fbb8c
!== array() => !empty()
12 years ago
Alexander Kochetov
d7df7053e0
=== array() => empty()
12 years ago
Qiang Xue
15b9f97ca4
Fixed typo in query builder and reverted changes to DbCache.php
12 years ago
Qiang Xue
906e402ba8
ActiveRecord::update() and ActiveRecord::delete() now returns the number rows affected.
12 years ago
Qiang Xue
6a2bfae41c
use parameter binding for query builder.
12 years ago
Qiang Xue
06feccff8b
refactored query builder.
...
finished Sort.
12 years ago