├── .github └── workflows │ └── tests.yml ├── .gitignore ├── .scrutinizer.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── src ├── DbContext.php ├── Descriptor.php ├── Driver.php ├── DriverFactory.php ├── NullConnection.php ├── descriptors │ ├── InformationSchemaDescriptor.php │ ├── MysqlDescriptor.php │ ├── PostgresqlDescriptor.php │ └── SqliteDescriptor.php ├── drivers │ ├── MysqlDriver.php │ ├── PostgresqlDriver.php │ └── SqliteDriver.php └── exceptions │ ├── ConnectionException.php │ ├── DatabaseDriverException.php │ └── TableNotFoundException.php └── tests ├── cases └── DriverTest.php ├── config ├── github.xml └── sample.xml ├── databases ├── mysql.sql ├── postgresql.sql └── sqlite.sql ├── expected ├── mysql │ ├── database_description.php │ ├── database_description_clean_defaults.php │ ├── strings.json │ └── view_description.php ├── postgresql │ ├── database_description.php │ ├── database_description_clean_defaults.php │ ├── employees_description.php │ ├── strings.json │ └── view_description.php ├── sqlite │ ├── database_description.php │ ├── database_description_clean_defaults.php │ ├── strings.json │ └── view_description.php └── xml │ └── transactions.xml └── lib └── DriverLoader.php /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | nbproject 2 | vendor 3 | tests/config/*.xml 4 | -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/composer.lock -------------------------------------------------------------------------------- /src/DbContext.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/DbContext.php -------------------------------------------------------------------------------- /src/Descriptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/Descriptor.php -------------------------------------------------------------------------------- /src/Driver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/Driver.php -------------------------------------------------------------------------------- /src/DriverFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/DriverFactory.php -------------------------------------------------------------------------------- /src/NullConnection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/NullConnection.php -------------------------------------------------------------------------------- /src/descriptors/InformationSchemaDescriptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/descriptors/InformationSchemaDescriptor.php -------------------------------------------------------------------------------- /src/descriptors/MysqlDescriptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/descriptors/MysqlDescriptor.php -------------------------------------------------------------------------------- /src/descriptors/PostgresqlDescriptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/descriptors/PostgresqlDescriptor.php -------------------------------------------------------------------------------- /src/descriptors/SqliteDescriptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/descriptors/SqliteDescriptor.php -------------------------------------------------------------------------------- /src/drivers/MysqlDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/drivers/MysqlDriver.php -------------------------------------------------------------------------------- /src/drivers/PostgresqlDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/drivers/PostgresqlDriver.php -------------------------------------------------------------------------------- /src/drivers/SqliteDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/drivers/SqliteDriver.php -------------------------------------------------------------------------------- /src/exceptions/ConnectionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/exceptions/ConnectionException.php -------------------------------------------------------------------------------- /src/exceptions/DatabaseDriverException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/exceptions/DatabaseDriverException.php -------------------------------------------------------------------------------- /src/exceptions/TableNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/src/exceptions/TableNotFoundException.php -------------------------------------------------------------------------------- /tests/cases/DriverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/cases/DriverTest.php -------------------------------------------------------------------------------- /tests/config/github.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/config/github.xml -------------------------------------------------------------------------------- /tests/config/sample.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/config/sample.xml -------------------------------------------------------------------------------- /tests/databases/mysql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/databases/mysql.sql -------------------------------------------------------------------------------- /tests/databases/postgresql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/databases/postgresql.sql -------------------------------------------------------------------------------- /tests/databases/sqlite.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/databases/sqlite.sql -------------------------------------------------------------------------------- /tests/expected/mysql/database_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/mysql/database_description.php -------------------------------------------------------------------------------- /tests/expected/mysql/database_description_clean_defaults.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/mysql/database_description_clean_defaults.php -------------------------------------------------------------------------------- /tests/expected/mysql/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/mysql/strings.json -------------------------------------------------------------------------------- /tests/expected/mysql/view_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/mysql/view_description.php -------------------------------------------------------------------------------- /tests/expected/postgresql/database_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/postgresql/database_description.php -------------------------------------------------------------------------------- /tests/expected/postgresql/database_description_clean_defaults.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/postgresql/database_description_clean_defaults.php -------------------------------------------------------------------------------- /tests/expected/postgresql/employees_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/postgresql/employees_description.php -------------------------------------------------------------------------------- /tests/expected/postgresql/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/postgresql/strings.json -------------------------------------------------------------------------------- /tests/expected/postgresql/view_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/postgresql/view_description.php -------------------------------------------------------------------------------- /tests/expected/sqlite/database_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/sqlite/database_description.php -------------------------------------------------------------------------------- /tests/expected/sqlite/database_description_clean_defaults.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/sqlite/database_description_clean_defaults.php -------------------------------------------------------------------------------- /tests/expected/sqlite/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/sqlite/strings.json -------------------------------------------------------------------------------- /tests/expected/sqlite/view_description.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/sqlite/view_description.php -------------------------------------------------------------------------------- /tests/expected/xml/transactions.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/expected/xml/transactions.xml -------------------------------------------------------------------------------- /tests/lib/DriverLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntentan/atiaa/HEAD/tests/lib/DriverLoader.php --------------------------------------------------------------------------------