Open Tigrov opened 4 months ago
AbstractPdoConnection.php Changes
AbstractDDLQueryBuilder.php Updates
AbstractDMLQueryBuilder.php Modifications
AbstractQueryBuilder.php Changes
New Files - ColumnDefinitionBuilder & ColumnDefinitionBuilderInterface
DDLQueryBuilderInterface.php Updates
addColumn
method was expanded to support a wider variety of input, improving our usage of the method as it now can accept more types of inputs.QueryBuilderInterface.php Adjustments
Removal of AbstractColumnSchema.php
Changes to AbstractTableSchema.php & AbstractSchema.php
Additions of New Column Files
BigIntColumn
, BinaryColumn
, etc.) were introduced for better handling of database attributes.Additions of New Schema Column Files
Changes to Column, ColumnBuilder, ColumnFactory Files
Renaming and Moving of ColumnSchemaInterface
Addition of New Column Classes
Adjustment to SchemaInterface
Modification to TableSchemaInterface
ColumnInterface
for a more optimal database operation experience.Test Case Updates
Addition and Changes to Test Files
All these changes collectively aim to expand capabilities of database operations, making the system much more versatile. From running queries in a more effective way to handling a wide variety of column types, these updates bring greater flexibility and utility to the table.
Attention: Patch coverage is 68.20513%
with 186 lines
in your changes are missing coverage. Please review.
Project coverage is 80.92%. Comparing base (
e380ae2
) to head (5510e4f
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This is a draft to see new concept of columns for version 2.0
Main changes:
ColumnSchema::$name
andColumnSchema::$precision
(useColumnSchema::$size
)ColumnSchema::$enumValues
toColumnSchema::$values
(related with some issues)ColumnSchema::getFullDbType()
method to get full name of the type, e.g.varchar(20)
pk
abstract type constantsColumnSchemaInterface::...pk
useColumnBuilder::...pk()
insteadAbstractColumn
andColumnInterface
marked as deprecated till version 3.0.0AbstractColumnSchema
renamed toColumn
TypeColumn
classes (IntegerColumn
,StringColumn
, etc)ColumnFactory
,ColumnBuilder
andColumnDefinitionBuilder
TableSchema
(instead ofAbstractSchema::resolveTableName()
)The changes will solve few issues and after related improvements it will solve few more issues. It will allow specify any php type or object type for any db type or table column.