feat: implement dynamic database connection service with MySQL driver and API schema endpoints
This commit is contained in:
@@ -14,6 +14,16 @@ interface DatabaseDriverInterface
|
||||
*/
|
||||
public function query(string $sql, array $bindings = []): array;
|
||||
|
||||
/**
|
||||
* Get the table schema.
|
||||
*/
|
||||
public function getTableSchema(string $table): array;
|
||||
|
||||
/**
|
||||
* Get table data.
|
||||
*/
|
||||
public function getTableData(string $table, int $limit = 100, int $offset = 0): array;
|
||||
|
||||
/**
|
||||
* Get the underlying connection instance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user