waryway/mysql-query-builder

A object based query builder

dev-master 2019-09-08 16:42 UTC

This package is auto-updated.

Last update: 2024-04-09 11:53:50 UTC


README

Object based query builder - because ORM's aren't always the right answer. Build Status

instructions

  • do the composer thing.
  • Build queries how almost you normally would - just dump them into the QueryObject.

example

The following example builds a simple query. More specific examples can be found in the QueryObject test!

$queryString = 'select * from some_table where some_table.sky = \'blue\';';
$rawQuery = new QueryObject();
$rawQuery->BuildAdd($queryString);
$rawQuery->toSql(),