Giter Club home page Giter Club logo

php-pdb's People

Contributors

vphantom avatar

Watchers

 avatar  avatar

php-pdb's Issues

Add multi-rowset support

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.

Add support for MySQL and SphinxQL

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?

Initial import and publication

  • 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

Create test suite

Add testing and coverage reporting, including GitHub integration with Travis-CI and Coveralls, and build up the test suite to at least 90% coverage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.