├── .gitattributes ├── .github └── workflows │ └── phpunit.yml ├── .gitignore ├── LICENSE.TXT ├── README.md ├── composer.json └── src ├── Adapter ├── AbstractAdapter.php ├── AdapterInterface.php ├── Exception.php ├── Mysql.php ├── Pdo.php ├── Pgsql.php ├── Profiler │ ├── AbstractProfiler.php │ ├── Exception.php │ ├── Profiler.php │ ├── ProfilerInterface.php │ └── Step.php ├── Sqlite.php ├── Sqlsrv.php └── Transaction │ ├── AbstractManager.php │ ├── Exception.php │ ├── Manager.php │ └── ManagerInterface.php ├── Db.php ├── Exception.php ├── Gateway ├── AbstractGateway.php ├── Exception.php ├── GatewayInterface.php ├── Row.php └── Table.php ├── Record.php ├── Record ├── AbstractRecord.php ├── Collection.php ├── Encoded.php ├── Exception.php └── Relationships │ ├── AbstractRelationship.php │ ├── BelongsTo.php │ ├── Exception.php │ ├── HasMany.php │ ├── HasOne.php │ ├── HasOneOf.php │ └── RelationshipInterface.php ├── Sql.php └── Sql ├── AbstractClause.php ├── AbstractPredicateClause.php ├── AbstractSql.php ├── Data.php ├── Delete.php ├── Exception.php ├── Having.php ├── Insert.php ├── Join.php ├── Migration ├── AbstractMigration.php ├── AbstractMigrator.php ├── Exception.php ├── MigrationInterface.php ├── MigratorInterface.php └── Template │ └── MigrationTemplate.php ├── Migrator.php ├── Parser ├── Exception.php ├── Expression.php ├── Operator.php ├── Order.php └── Table.php ├── Predicate ├── AbstractPredicate.php ├── Between.php ├── EqualTo.php ├── Exception.php ├── GreaterThan.php ├── GreaterThanOrEqualTo.php ├── In.php ├── IsNotNull.php ├── IsNull.php ├── LessThan.php ├── LessThanOrEqualTo.php ├── Like.php ├── NotBetween.php ├── NotEqualTo.php ├── NotIn.php └── NotLike.php ├── PredicateSet.php ├── Schema.php ├── Schema ├── AbstractStructure.php ├── AbstractTable.php ├── Alter.php ├── Create.php ├── Drop.php ├── Exception.php ├── Formatter │ ├── AbstractFormatter.php │ ├── Column.php │ ├── Exception.php │ └── Table.php ├── Rename.php └── Truncate.php ├── Seeder.php ├── Seeder ├── AbstractSeeder.php ├── SeederInterface.php └── Template │ └── SeederTemplate.php ├── Select.php ├── Update.php └── Where.php /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/phpunit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/.github/workflows/phpunit.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/LICENSE.TXT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/composer.json -------------------------------------------------------------------------------- /src/Adapter/AbstractAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/AbstractAdapter.php -------------------------------------------------------------------------------- /src/Adapter/AdapterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/AdapterInterface.php -------------------------------------------------------------------------------- /src/Adapter/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Exception.php -------------------------------------------------------------------------------- /src/Adapter/Mysql.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Mysql.php -------------------------------------------------------------------------------- /src/Adapter/Pdo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Pdo.php -------------------------------------------------------------------------------- /src/Adapter/Pgsql.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Pgsql.php -------------------------------------------------------------------------------- /src/Adapter/Profiler/AbstractProfiler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Profiler/AbstractProfiler.php -------------------------------------------------------------------------------- /src/Adapter/Profiler/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Profiler/Exception.php -------------------------------------------------------------------------------- /src/Adapter/Profiler/Profiler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Profiler/Profiler.php -------------------------------------------------------------------------------- /src/Adapter/Profiler/ProfilerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Profiler/ProfilerInterface.php -------------------------------------------------------------------------------- /src/Adapter/Profiler/Step.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Profiler/Step.php -------------------------------------------------------------------------------- /src/Adapter/Sqlite.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Sqlite.php -------------------------------------------------------------------------------- /src/Adapter/Sqlsrv.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Sqlsrv.php -------------------------------------------------------------------------------- /src/Adapter/Transaction/AbstractManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Transaction/AbstractManager.php -------------------------------------------------------------------------------- /src/Adapter/Transaction/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Transaction/Exception.php -------------------------------------------------------------------------------- /src/Adapter/Transaction/Manager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Transaction/Manager.php -------------------------------------------------------------------------------- /src/Adapter/Transaction/ManagerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Adapter/Transaction/ManagerInterface.php -------------------------------------------------------------------------------- /src/Db.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Db.php -------------------------------------------------------------------------------- /src/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Exception.php -------------------------------------------------------------------------------- /src/Gateway/AbstractGateway.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Gateway/AbstractGateway.php -------------------------------------------------------------------------------- /src/Gateway/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Gateway/Exception.php -------------------------------------------------------------------------------- /src/Gateway/GatewayInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Gateway/GatewayInterface.php -------------------------------------------------------------------------------- /src/Gateway/Row.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Gateway/Row.php -------------------------------------------------------------------------------- /src/Gateway/Table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Gateway/Table.php -------------------------------------------------------------------------------- /src/Record.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record.php -------------------------------------------------------------------------------- /src/Record/AbstractRecord.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/AbstractRecord.php -------------------------------------------------------------------------------- /src/Record/Collection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Collection.php -------------------------------------------------------------------------------- /src/Record/Encoded.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Encoded.php -------------------------------------------------------------------------------- /src/Record/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Exception.php -------------------------------------------------------------------------------- /src/Record/Relationships/AbstractRelationship.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/AbstractRelationship.php -------------------------------------------------------------------------------- /src/Record/Relationships/BelongsTo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/BelongsTo.php -------------------------------------------------------------------------------- /src/Record/Relationships/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/Exception.php -------------------------------------------------------------------------------- /src/Record/Relationships/HasMany.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/HasMany.php -------------------------------------------------------------------------------- /src/Record/Relationships/HasOne.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/HasOne.php -------------------------------------------------------------------------------- /src/Record/Relationships/HasOneOf.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/HasOneOf.php -------------------------------------------------------------------------------- /src/Record/Relationships/RelationshipInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Record/Relationships/RelationshipInterface.php -------------------------------------------------------------------------------- /src/Sql.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql.php -------------------------------------------------------------------------------- /src/Sql/AbstractClause.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/AbstractClause.php -------------------------------------------------------------------------------- /src/Sql/AbstractPredicateClause.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/AbstractPredicateClause.php -------------------------------------------------------------------------------- /src/Sql/AbstractSql.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/AbstractSql.php -------------------------------------------------------------------------------- /src/Sql/Data.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Data.php -------------------------------------------------------------------------------- /src/Sql/Delete.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Delete.php -------------------------------------------------------------------------------- /src/Sql/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Exception.php -------------------------------------------------------------------------------- /src/Sql/Having.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Having.php -------------------------------------------------------------------------------- /src/Sql/Insert.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Insert.php -------------------------------------------------------------------------------- /src/Sql/Join.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Join.php -------------------------------------------------------------------------------- /src/Sql/Migration/AbstractMigration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migration/AbstractMigration.php -------------------------------------------------------------------------------- /src/Sql/Migration/AbstractMigrator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migration/AbstractMigrator.php -------------------------------------------------------------------------------- /src/Sql/Migration/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migration/Exception.php -------------------------------------------------------------------------------- /src/Sql/Migration/MigrationInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migration/MigrationInterface.php -------------------------------------------------------------------------------- /src/Sql/Migration/MigratorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migration/MigratorInterface.php -------------------------------------------------------------------------------- /src/Sql/Migration/Template/MigrationTemplate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migration/Template/MigrationTemplate.php -------------------------------------------------------------------------------- /src/Sql/Migrator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Migrator.php -------------------------------------------------------------------------------- /src/Sql/Parser/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Parser/Exception.php -------------------------------------------------------------------------------- /src/Sql/Parser/Expression.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Parser/Expression.php -------------------------------------------------------------------------------- /src/Sql/Parser/Operator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Parser/Operator.php -------------------------------------------------------------------------------- /src/Sql/Parser/Order.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Parser/Order.php -------------------------------------------------------------------------------- /src/Sql/Parser/Table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Parser/Table.php -------------------------------------------------------------------------------- /src/Sql/Predicate/AbstractPredicate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/AbstractPredicate.php -------------------------------------------------------------------------------- /src/Sql/Predicate/Between.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/Between.php -------------------------------------------------------------------------------- /src/Sql/Predicate/EqualTo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/EqualTo.php -------------------------------------------------------------------------------- /src/Sql/Predicate/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/Exception.php -------------------------------------------------------------------------------- /src/Sql/Predicate/GreaterThan.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/GreaterThan.php -------------------------------------------------------------------------------- /src/Sql/Predicate/GreaterThanOrEqualTo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/GreaterThanOrEqualTo.php -------------------------------------------------------------------------------- /src/Sql/Predicate/In.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/In.php -------------------------------------------------------------------------------- /src/Sql/Predicate/IsNotNull.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/IsNotNull.php -------------------------------------------------------------------------------- /src/Sql/Predicate/IsNull.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/IsNull.php -------------------------------------------------------------------------------- /src/Sql/Predicate/LessThan.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/LessThan.php -------------------------------------------------------------------------------- /src/Sql/Predicate/LessThanOrEqualTo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/LessThanOrEqualTo.php -------------------------------------------------------------------------------- /src/Sql/Predicate/Like.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/Like.php -------------------------------------------------------------------------------- /src/Sql/Predicate/NotBetween.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/NotBetween.php -------------------------------------------------------------------------------- /src/Sql/Predicate/NotEqualTo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/NotEqualTo.php -------------------------------------------------------------------------------- /src/Sql/Predicate/NotIn.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/NotIn.php -------------------------------------------------------------------------------- /src/Sql/Predicate/NotLike.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Predicate/NotLike.php -------------------------------------------------------------------------------- /src/Sql/PredicateSet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/PredicateSet.php -------------------------------------------------------------------------------- /src/Sql/Schema.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema.php -------------------------------------------------------------------------------- /src/Sql/Schema/AbstractStructure.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/AbstractStructure.php -------------------------------------------------------------------------------- /src/Sql/Schema/AbstractTable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/AbstractTable.php -------------------------------------------------------------------------------- /src/Sql/Schema/Alter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Alter.php -------------------------------------------------------------------------------- /src/Sql/Schema/Create.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Create.php -------------------------------------------------------------------------------- /src/Sql/Schema/Drop.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Drop.php -------------------------------------------------------------------------------- /src/Sql/Schema/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Exception.php -------------------------------------------------------------------------------- /src/Sql/Schema/Formatter/AbstractFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Formatter/AbstractFormatter.php -------------------------------------------------------------------------------- /src/Sql/Schema/Formatter/Column.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Formatter/Column.php -------------------------------------------------------------------------------- /src/Sql/Schema/Formatter/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Formatter/Exception.php -------------------------------------------------------------------------------- /src/Sql/Schema/Formatter/Table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Formatter/Table.php -------------------------------------------------------------------------------- /src/Sql/Schema/Rename.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Rename.php -------------------------------------------------------------------------------- /src/Sql/Schema/Truncate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Schema/Truncate.php -------------------------------------------------------------------------------- /src/Sql/Seeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Seeder.php -------------------------------------------------------------------------------- /src/Sql/Seeder/AbstractSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Seeder/AbstractSeeder.php -------------------------------------------------------------------------------- /src/Sql/Seeder/SeederInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Seeder/SeederInterface.php -------------------------------------------------------------------------------- /src/Sql/Seeder/Template/SeederTemplate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Seeder/Template/SeederTemplate.php -------------------------------------------------------------------------------- /src/Sql/Select.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Select.php -------------------------------------------------------------------------------- /src/Sql/Update.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Update.php -------------------------------------------------------------------------------- /src/Sql/Where.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popphp/pop-db/HEAD/src/Sql/Where.php --------------------------------------------------------------------------------