czproject/sql-schema
最新稳定版本:v3.2.0
Composer 安装命令:
composer require czproject/sql-schema
包简介
Library for describe of the database schema.
README 文档
README
Library for describe of the database schema.
Installation
Download a latest package or use Composer:
composer require czproject/sql-schema
CzProject\SqlSchema requires PHP 8.0 or later.
Usage
use CzProject\SqlSchema\Index; $schema = new CzProject\SqlSchema\Schema; $table = $schema->addTable('book'); $table->addColumn('id', 'INT', NULL, array('UNSIGNED')); $table->addColumn('name', 'VARCHAR', array(200)); $table->addColumn('author_id', 'INT', NULL, array('UNSIGNED')); $table->addIndex(NULL, 'id', Index::TYPE_PRIMARY); $table->addIndex('name_author_id', array('name', 'author_id'), Index::TYPE_UNIQUE); $schema->getTables();
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/
统计信息
- 总下载量: 5.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-28