Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (38 loc) · 1.08 KB

OINO.uno

Installation

composer global require 3xter/oino

Install in your laravel project laracasts/generators

composer require --dev laracasts/generators

Settings

Create in your project oino.yaml file.

settings:
  shell-driver: 'laravel'
  db-execute: 'schema'
  db:
    driver: 'pdo_mysql'
    host: 'localhost'
    dbname: 'homestead'
    port: 3306
    user: 'homestead'
    password: 'secret'
args:
  file: ''
  tab: ''
  project: ''
  dir: ''
  filename: ''

db - schema parser use dbal. More details about settings: Doctrine DBAL Configuration

Import example:

php ~/.composer/vendor/bin/oino -c import -o /path/to/settings/oino.yaml --file="path/to/exported/file.json" --tab="tab name" --project="/path/to/project"

Export example:

php ~/.composer/vendor/bin/oino -c export -o /path/to/settings/oino.yaml --dir="path/to/export/directory"