2017 © Pedro PelĂĄez
 

library datatype

Common data types for data abstraction

image

soluble/datatype

Common data types for data abstraction

  • Sunday, December 4, 2016
  • by belgattitude
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,138 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 2 % Grown

The README.md

Soluble\Datatype

PHP Version HHVM Status Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License, (*1)

Introduction

Common datatype abstractions, (*2)

Requirements

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

Documentation

Installation

Installation in your PHP project

Soluble\Datatype works best via composer., (*3)

php composer require soluble/datatype:0.*

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

<?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 :, (*5)

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, (*6)

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

Coding standards

The Versions

04/12 2016

dev-master

9999999-dev http://soluble.io

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0

 

The Development Requires

database datatype

26/09 2016

0.11.0

0.11.0.0 http://soluble.io

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0

 

database datatype

12/01 2016

0.10.0

0.10.0.0 http://soluble.io

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

database datatype

12/01 2016

0.9.3

0.9.3.0 http://soluble.io

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

database datatype

02/01 2016

0.9.2

0.9.2.0 https://github.com/belgattitude/soluble-datatype

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

database datatype

28/12 2015

0.9.1

0.9.1.0 https://github.com/belgattitude/soluble-datatype

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

database datatype

28/12 2015

0.9.0

0.9.0.0 https://github.com/belgattitude/soluble-datatype

Common data types for data abstraction

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

database datatype