-
Notifications
You must be signed in to change notification settings - Fork 20
For contributors
This page has to serve as a guide function for those who want to work in the project issue.
-
private $without_quotesTypes that do not allow quotes in queries.
###compileForSelect(Builder $builder, $bindings) Catch the information provided by the Builder and assemble the binds again, as their types.
-
$arrTablesStoring all tables used in select (from and joins). -
$tablesStoring all tables used in select (and all alias). -
$typesGet a query result fromqueryStringForSelect()'s query. -
$tiposTakes the data generated by the previous var and "mix" with the$tables(includes alias!). -
$new_formatThis is no longer being used here, sorry about that. -
$wheresStoring the Builder's where. -
$iCount only if found a bind (if you look the ifs, you will understand) -
$new_bindsThe return of function, with all$bindingscasting with our type.
###queryStringForSelect($tables) Pick up the $table fields and returns its types (such as integer, real).
-
$explicitDBIf the database is explicitly in front of the table.
###compileBindings(Builder $builder, $bindings)
Catch the information provided by the preg_match() (insert, update and delete) and assemble the binds again, as their types.
-
$matchesAll matches inpreg_match()(tables and attributes). -
$desQueryGet an associative array from$matches. -
$arrQueryGet all attributes inner [] (tables is mixed with the fields, because you have something like [our_table].[our_field], it becomes useful in front). -
$numTablesCount the number of tables (i do not know why I wrote it. haha)
At this point, we separe fields (and fields with our types), and binding index (and with it, making $new_binds like compileForSelect()) per tables
-
$new_formatReturn of above.
###queryStringForCompileBindings($tables)
Same as queryStringForSelect($tables).
###compileNewQuery($query, $bindings) Return a new compiled query such as Sybase works.
-
$partQueryDivide the query as the bindings. -
$newQueryReturn of function.
###compileOffset($offset, $query,
###queryStringForIdentity($from) Return the table's identity.
###queryStringForPrimaries($from) Return the tables' primary keys (don't works properly (issue #16)).
###select($query, $bindings = array(), $useReadPdo = true) Run all above.