inlm/schema-generator-dibi
最新稳定版本:v1.2.0
Composer 安装命令:
composer require inlm/schema-generator-dibi
包简介
Dibi bridge for inlm/schema-generator
README 文档
README
Installation
Download a latest package or use Composer:
composer require inlm/schema-generator-dibi
Schema Generator requires PHP 8.0 or later and Dibi 3.0 or newer.
Documentation
Supported databases:
- MySQL
DibiExtractor
It generates schema from existing database.
$connection = new Dibi\Connection(...); $ignoredTables = ['migrations']; $extractor = new Inlm\SchemaGenerator\DibiBridge\DibiExtractor($connection, $ignoredTables);
DibiAdapter
It loads schema from existing database.
$connection = new Dibi\Connection(...); $ignoredTables = ['migrations']; $extractor = new Inlm\SchemaGenerator\DibiBridge\DibiAdapter($connection, $ignoredTables);
Note: saving of schema is not supported, use DibiDumper.
DibiDumper
DibiDumper executes SQL queries directly in database.
$connection = new Dibi\Connection(...); $dumper = new Inlm\SchemaGenerator\DibiBridge\DibiDumper($connection); $dumper->setHeader(array( 'SET foreign_key_checks = 1;', ));
If you need generate ... AFTER column in ALTER TABLE statements, call:
$dumper->enablePositionChanges();
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/
统计信息
- 总下载量: 594
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-07-27