czogori / rentgen
Database abstraction layer for information and manipulation schema
Installs: 2 919
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.2
- symfony/config: 2.4.*@dev
- symfony/dependency-injection: 2.4.*@dev
- symfony/event-dispatcher: 2.4.*@dev
- symfony/filesystem: 2.4.*@dev
- symfony/finder: 2.4.*@dev
- symfony/yaml: 2.4.*@dev
This package is not auto-updated.
Last update: 2024-11-08 15:36:23 UTC
README
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'));