Query\QueryParser
Utility Class to parse sql clauses for properly escaping identifiers
Synopsis
- // members
- private DriverInterface $db;
- private array $match_patterns = ;
- public array $matches = ;
- // methods
- public void __construct()
- public array parse_join()
- public string compile_join()
- protected array filter_array()
Coverage
Methods | 100% | 4 / 4 |
Lines | 100% | 23 / 23 |
Members
private
- $db
—
Query\DriverInterface
DB Driver - $match_patterns
—
array
Regex patterns for various syntax components
public
- $matches
—
array
Regex matches
Methods
protected
- filter_array() — Returns a more useful match array
public
- __construct() — Constructor/entry point into parser
- compile_join() — Compiles a join condition after parsing
- parse_join() — Parser method for setting the parse string
History
-
2015-11-10T16:29:17-05:00 (commit #a1c3b9e)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Change test setup to be more extensible
-
2015-11-10T11:18:11-05:00 (commit #1e2a7ee)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Actually fix tests
-
2015-11-10T10:12:23-05:00 (commit #b5a141f)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Make class names Pascal Case
-
2015-07-31T10:24:34-04:00 (commit #056e8bf)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Re-add some missing tests, and update README
-
2015-07-29T16:51:17-04:00 (commit #8511c6a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Move library into src folder, fix simpletest test runner
-
2015-07-17T16:01:41-04:00 (commit #b4118ce)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Update docs
-
2015-07-16T16:56:13-04:00 (commit #bfc3ea3)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Reorganize drivers into a more modern layout
-
2014-08-08T13:48:20-04:00 (commit #dd672df)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Reorganize classes to autoload by namespace
-
2014-04-23T16:27:43-04:00 (commit #fddd92a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix some more docblocks
-
2014-04-23T15:53:16-04:00 (commit #aa5aa8e)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Docblock fixes and more dependency injection
-
2014-04-03T13:28:30-04:00 (commit #4809016)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Add insert_batch methods to Firebird and SQLite
-
2014-04-02T18:53:48-04:00 (commit #bccea8c)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
A little cleanup of parser and connection code
-
2014-04-02T17:08:50-04:00 (commit #e3fdad5)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Namespaces!
-
2014-03-31T16:01:58-04:00 (commit #32a01a6)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Update docs, composer and README
-
2014-02-18T15:18:01-05:00 (commit #1095e85)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix some docblocks, and update test files to 2014
-
2014-02-11T14:29:41-05:00 (commit #bed0d1b)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Improve code coverage