mbrevda / aurasql-queryproxy
Class to proxy Aura Sql and Query methods
Installs: 4 110
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- aura/sql: 2.*
- aura/sqlquery: 2.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
- squizlabs/php_codesniffer: 1.*
This package is not auto-updated.
Last update: 2025-01-04 16:46:56 UTC
README
As of v2, Aura Sql and Aura SqlQuery have been decoupled. This project attempts to offer a single interface from which a new ExtendedPdo
class can be instantiated and also offer chainable access to Sql Query, including chainable exec()
and fetch()
.
Usage
here is a bear bones example of how to use the class:
<?php include(__DIR__ . '/vendor/autoload.php'); use \Mbrevda\Queryproxy\Db; $db = new Db('sqlite::memory:', '', ''); $q = $db->select() ->cols(['*']) ->from('sometable') ->fetchAll(); print_r($q);