Skip to content

czogori/Rentgen

Repository files navigation

Rentgen

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'));

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages