承接 soluble/datatype 相关项目开发

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

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

soluble/datatype

Composer 安装命令:

composer require soluble/datatype

包简介

Common data types for data abstraction

README 文档

README

PHP Version HHVM Status Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License

Introduction

Common datatype abstractions

Requirements

  • PHP engine 5.4+, 7.0 or HHVM >= 3.2.

Documentation

Installation

Installation in your PHP project

Soluble\Datatype works best via composer.

php composer require soluble/datatype:0.*

Most modern frameworks will include Composer out of the box, but ensure the following file is included:

<?php
// include the Composer autoloader
require 'vendor/autoload.php';

API

AbstractColumnDefinition

Metadata information is stored as an Soluble\Datatype\Column\Definition\AbstractColumnDefinition object on which :

General methods Return Description
getName() string Return column name (unaliased)
getAlias() string Return column alias
getTableName() string Return origin table
getSchemaName() string Originating schema for the column/table
Type related methods Return Description
getDataType() string Column datatype (see Column\Type)
getNativeDataType() string Return native datatype
isText() boolean Whether the column is textual (string, blog...)
isNumeric() boolean Whether the column is numeric (decimal, int...)
isDate() boolean Is a date type
Extra information methods Return Description
isComputed() boolean Whether the column is computed, i.e. '1+1, sum()
isGroup() boolean Grouped operation sum(), min(), max()
Source infos Return Description
isPrimary() boolean Whether the column is (part of) primary key
isNullable() boolean Whether the column is nullable
getColumnDefault() string Return default value for column
getOrdinalPosition() integer Return position in the select

Implementation od AbstractColumnDefinition

Concrete implementations of Soluble\Datatype\Column\Definition\AbstractColumnDefinition are

Drivers Interface Description
BitColumn
BlobColumn
BooleanColumn
DateColumn DateColumnInterface
DateTimeColumn DatetimeColumnInterface
DecimalColumn NumericColumnInterface
FloatColumn NumericColumnInterface
GeometryColumn
IntegerColumn NumericColumnInterface
StringColumn TextColumnInterface
TimeColumn

Coding standards

统计信息

  • 总下载量: 1.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固