vphantom / php-pdb Goto Github PK
View Code? Open in Web Editor NEWQuery builder and thin wrapper around PHP's PDO
License: MIT License
Query builder and thin wrapper around PHP's PDO
License: MIT License
PHP's PDO supports $stmt->nextRowset()
which switches to the next set of result rows in the result set, returning false on failure. This is necessary to use Sphinx's FACET
extension to SQL.
A caller might want to use selectArrayIndexed()
for the first set, selectSingleArray()
for the second, etc. Therefore, all these methods should be seen as returning the first result set, and if invoked without any arguments should call PDO's $stmt->nextRowset()
instead of executing a query.
Internal method _getColumns()
helps safely ignore unknown columns in incoming data, however it is currently hard-coded for SQLite3's PRAGMA table_info(...)
.
Somehow determine if we're in SQLite3, MySQL or SphinxQL. (Require it in constructor?)
MySQL: SHOW COLUMNS FROM tableName
returns column names in the first column of the result.
SphinxQL: DESC indexName
returns attribute names in the first column of the result.
Look into abstracting away the differences between MySQL and SQLite3, maybe? Auto-increment index creation would be tough, but are there CRUD differences worth that?
Import code from PyritePHP
Import documentation from PHP-Library and create a Makefile
to rebuild documentation from source
Clean up any query builder issues
Publish using Composer
Add testing and coverage reporting, including GitHub integration with Travis-CI and Coveralls, and build up the test suite to at least 90% coverage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.