From f414faa736f0640ca770d705c212fbb0600864e6 Mon Sep 17 00:00:00 2001 From: Headgent Date: Wed, 12 Aug 2026 21:36:43 +0200 Subject: [PATCH] feat(dbschema): DbSchema-Contracts entfernen (#7) DbSchemaReaderInterface und DbSchemaExporterInterface stammten aus dem stillgelegten jardistools/dbSchema (2026-07-24, GitHub-Repo geloescht). Nachfolge ist die Builder-Faehigkeit Schema-zu-DDL. Bestandspruefung 2026-08-12: kein Repo der Flotte importiert oder implementiert diese Interfaces. Bescheid Rolf 2026-08-12: Minor-Release im v1-Bereich, da noch nicht publiziert genutzt. --- README.md | 4 +- src/DbSchema/DbSchemaExporterInterface.php | 38 --------------- src/DbSchema/DbSchemaReaderInterface.php | 56 ---------------------- 3 files changed, 1 insertion(+), 97 deletions(-) delete mode 100644 src/DbSchema/DbSchemaExporterInterface.php delete mode 100644 src/DbSchema/DbSchemaReaderInterface.php diff --git a/README.md b/README.md index 3c02509..ff922c4 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ This package provides all interface contracts for the Jardis ecosystem in a sing | `Data` | 3 | Hydration, Identity, FieldMapper | | `DbConnection` | 3 | ConnectionPool, DbConnection, DatabaseConfig | | `DbQuery` | 17 | Query Builder, Conditions, Joins, Expressions, Results | -| `DbSchema` | 2 | Schema Reader, Schema Exporter | | `DotEnv` | 1 | Environment variable loading | | `EventListener` | 1 | EventListenerRegistry (paired with PSR-14 EventDispatcher) | | `Filesystem` | 6 | Filesystem (Reader/Writer/Service), FileInfo + Exception | @@ -36,7 +35,7 @@ This package provides all interface contracts for the Jardis ecosystem in a sing | `Validation` | 3 | Validator, ValueValidator, ValidationResult | | `Workflow` | 8 | Workflow engine + orchestration (Workflow, Builder, NodeBuilder, Config, Context, Result, Chain, AggregateResponse) — 7 named transitions: `onSuccess`, `onFail`, `onTimeout`, `onSkip`, `onCancel`, `onEvent`, `onExit` | -**88 contracts** across 18 domains. +**86 contracts** across 17 domains. --- @@ -58,7 +57,6 @@ JardisSupport\Contract\ ├── Data\ ├── DbConnection\ ├── DbQuery\ -├── DbSchema\ ├── DotEnv\ ├── EventListener\ ├── Filesystem\ diff --git a/src/DbSchema/DbSchemaExporterInterface.php b/src/DbSchema/DbSchemaExporterInterface.php deleted file mode 100644 index cbe495e..0000000 --- a/src/DbSchema/DbSchemaExporterInterface.php +++ /dev/null @@ -1,38 +0,0 @@ - $tables List of table names to export - * @return string Complete SQL DDL script - */ - public function toSql(array $tables): string; - - /** - * Exports schema as JSON. - * - * @param array $tables List of table names to export - * @param bool $prettyPrint Whether to format JSON with indentation (default: false) - * @return string JSON representation of schema - */ - public function toJson(array $tables, bool $prettyPrint = false): string; - - /** - * Exports schema as array. - * - * @param array $tables List of table names to export - * @return array Array representation of schema - */ - public function toArray(array $tables): array; -} diff --git a/src/DbSchema/DbSchemaReaderInterface.php b/src/DbSchema/DbSchemaReaderInterface.php deleted file mode 100644 index 35376cc..0000000 --- a/src/DbSchema/DbSchemaReaderInterface.php +++ /dev/null @@ -1,56 +0,0 @@ -|null Returns an array of tables if available, or null if no tables are present. - */ - public function tables(): ?array; - - /** - * Retrieves the columns of a given database table. - * - * @param string $container The name of the database table to fetch columns for. - * @param array|null $fields A list of fields to include in the result. - * @return array|null An array containing the columns of the table, or null if the table does not exist - * or an error occurs. - */ - public function columns(string $container, ?array $fields = null): ?array; - - /** - * Retrieves the indexes for the specified database table. - * - * @param string $container The name of the table for which to retrieve indexes. - * @return array|null An array of indexes if available, or null if no indexes are found. - */ - public function indexes(string $container): ?array; - - /** - * Retrieves the foreign keys associated with the given database table. - * - * @param string $container The name of the table for which to retrieve foreign keys. - * @return array|null An array of foreign keys if they exist, or null if none are found. - */ - public function foreignKeys(string $container): ?array; - - /** - * Maps a given database field type to its corresponding PHP data type. - * - * @param string $fieldType The database field type (e.g., 'varchar', 'int', 'datetime') - * @return string|null The corresponding PHP data type (e.g., 'string', 'int', 'DateTime'), or null if unmapped - */ - public function fieldType(string $fieldType): ?string; - - /** - * Retrieves the name of the driver. - * - * @return string The name of the driver. - */ - public function getDriverName(): string; -}