承接 gevman/zend-db-schema-info 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gevman/zend-db-schema-info

Composer 安装命令:

composer require gevman/zend-db-schema-info

包简介

Database Schema information provider for zend framework

README 文档

README

Database Schema information provider for zend framework

Installation

composer require gevman/zend-db-schema-info

Available methods

string[] Schema::getTables(void)

Returns table list

example
$schema = new Schema($container->get(\Zend\Db\Adapter\Adapter::class));

var_dump($schema->getTables());
ColumnEntity[] Schema::getTableColumns(string $table)

Returns list of information data objects for all columns in specified table

example
$schema = new Schema($container->get(\Zend\Db\Adapter\Adapter::class));

var_dump($schema->getTableColumns('users));

Data Object ColumnEntity definition

  • string $name - name of this column (without quotes).
  • bool $allowNull - whether this column can be null.
  • string $type - abstract type of this column. Possible abstract types include: char, string, text, boolean, smallint, integer, bigint, float, decimal, datetime, timestamp, time, date, binary, and money.
  • string $phpType - string the PHP type of this column. Possible PHP types include: string, boolean, integer, double.
  • string $dbType - the DB type of this column. Possible DB types vary according to the type of DBMS.
  • mixed $defaultValue - default value of this column
  • array $enumValues - enumerable values. This is set only if the column is declared to be an enumerable type.
  • int $size - display size of the column.
  • int $precision - precision of the column data, if it is numeric.
  • int $scale - scale of the column data, if it is numeric.
  • bool $isPrimaryKey - whether this column is a primary key
  • bool $autoIncrement - whether this column is auto-incremental
  • bool $unsigned - bool whether this column is unsigned. This is only meaningful when [[type]] is smallint, integer or bigint.
  • string $comment - comment of this column. Not all DBMS support this.

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固