定制 inlm/schema-generator-dibi 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

inlm/schema-generator-dibi

最新稳定版本:v1.2.0

Composer 安装命令:

composer require inlm/schema-generator-dibi

包简介

Dibi bridge for inlm/schema-generator

README 文档

README

Build Status Downloads this Month Latest Stable Version License

Donate

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-07-27