roquie / database

Great tool for working with database migrations and seeds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New maintained version of this package can be found at: https://github.com/spacetab-io/rdb-php (partially compatible) This version archived as is and no longer maintained.


Rdb

<?php

use Roquie\Database\Connection\Wait\Wait;
use Roquie\Database\Migration\Migrate;
use Roquie\Database\Seed\Seed;

Wait::connection($dsn, function (PDO $pdo) {
    Migrate::new($pdo)
        ->install()
        ->run();

    Seed::new($pdo)
        ->run();
});

Doc is coming soon.

About

Great tool for working with database migrations and seeds.

License:GNU General Public License v3.0


Languages

Language:PHP 99.6%Language:Dockerfile 0.2%Language:Makefile 0.2%