project data
data tuple component
aweitian/data
data tuple component
- Wednesday, November 29, 2017
- by awei.tian
- Repository
- 1 Watchers
- 0 Stars
- 1 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
关系数据库的抽象
使用 composer 命令进行安装或下载源代码使用。, (*1)
composer require aweitian/data, (*2)
分量 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)