czogori/rentgen

Database abstraction layer for information and manipulation schema

v0.9.1 2013-12-07 07:46 UTC

This package is not auto-updated.

Last update: 2020-10-29 20:22:24 UTC


README

Build Status Latest Stable Version Scrutinizer Code Quality

Database abstraction layer for both information and manipulation schema

Installation

Using composer:

{
    "require": {        
        "czogori/rentgen": "dev-master"
    }
}

Basic usage

Create sample table

$rentgen = new Rentgen();
$manipulation = $rentgen->createManipulationInstance();

$table = new Table('foo');
$table->addColumn(new StringColumn('bar'));
$table->addColumn(new IntegerColumn('baz', array('not_null' => true)));
$manipulation->create($table);

Get information about foo table

$info = $rentgen->createInfoInstance();
$fooTable = $info->getTable(new Table('foo'));