aweitian / data
data tuple component
Installs: 46
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/aweitian/data
Requires
- php: >=5.3.0
 
Requires (Dev)
- phpunit/phpunit: ~4.0
 
This package is auto-updated.
Last update: 2025-10-23 23:50:11 UTC
README
使用 composer 命令进行安装或下载源代码使用。
composer require aweitian/data
分量 Component
- name 字段名
 - alias 别名
 - dataType 字段类型,可用类型见下表
 - domain 字段的数据范围(一般在数据类型为集合时使用)
 - domainDescription
 - default 默认值
 - comment 备注
 - isUnsigned 是否是无负号数
 - allowNull 是否允许为空
 - isPk 是否是主键
 - isAutoIncrement 是否是递增字段
 
可用MYSQL字段类型
| tinyint | smallint | int | bigint | 
| float | double | decimal | mediumint | 
| text | tinyblob | tinytext | blob | 
| mediumblob | mediumtext | longblob | longtext | 
| datetime | timestamp | date | time | 
| year | enum | set | varchar | 
| char | binary | varbinary | 
Tuple 元组 关系表中的一行称为一个元组
- append(Component)
 - insert(pos,Component)