Skip to content
Query builders for Atlas.Pdo connections.
Branch: 1.x
Clone or download
Latest commit 1ef7a1a Jan 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs typo; fixes #3 Jan 22, 2019
src add quoteIdentifier() and INSERT/UPDATE quoting Aug 11, 2018
tests
.gitignore initial commit Mar 12, 2018
CHANGELOG.md
CONTRIBUTING.md
LICENSE.md update meta docs Apr 7, 2018
README.md fix doc link Aug 2, 2018
composer.json uses pds/skeleton standard May 17, 2018
phpunit.php
phpunit.xml.dist

README.md

Atlas.Query

Provides query builders for MySQL, Postgres, SQLite, and Microsoft SQL Server backends connected via Atlas.Pdo.

Read the documentation here.

Lineage

This package is a descendant of Aura.SqlQuery but differs from that package in significant ways. Some of those differences include:

  • The query objects depend on an Atlas.Pdo Connection (which can wrap a regular PDO instance).

  • There are no database-specific query classes as with the Aura package, though some database-specific behaviors are provided. This means the query object can be more reliably typehinted and provide IDE auto-completion, but at the cost of providing some methods that some databases may not recognize.

  • The Insert class provides only single-row inserts, not multiple-row.

  • Binding of values into Atlas queries allows for different PDO parameter types.

  • Some method names have changed slightly; for example, cols() is now columns(). Likewise, some method signatures have changed; for example, whereas in Aura.SqlQuery a method might take an array of expressions, the equivalent Atlas.Query method may use variadic arguments instead.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.