File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# SQLParser - Parse MySQL schemas in PHP, fast
22
3+ [ ![ Build Status] ( https://travis-ci.org/iamcal/SQLParser.svg?branch=master )] ( https://travis-ci.org/iamcal/SQLParser )
4+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/iamcal/SQLParser/badge.svg?branch=master )] ( https://coveralls.io/github/iamcal/SQLParser?branch=master )
5+
36This library was created to parse multiple ` CREATE TABLE ` schemas and compare them, so
47figure out what needs to be done to migrate one to the other.
58
@@ -9,6 +12,27 @@ just showed a diff (see [SchemaDiff](https://github.com/iamcal/SchemaDiff)), but
912of a pain.
1013
1114
15+ ## Installation
16+
17+ You can install this package using composer. To add it to your ` composer.json ` :
18+
19+ composer require iamcal/sql-parser
20+
21+ You can then load it using the composer autoloader:
22+
23+ require_once 'vendor/autoload.php';
24+ use iamcal\SQLParser;
25+
26+ $parser = new SQLParser();
27+
28+ If you don't use composer, you can skip the autoloader and include ` src/SQLParser.php ` directly.
29+
30+
31+ ## Usage
32+
33+ TODO
34+
35+
1236## Performance
1337
1438My test target is an 88K SQL file containing 114 tables from Glitch's main database.
You can’t perform that action at this time.
0 commit comments