3xter / oino
Export from database designer http://oino.uno and import to your database
v1.0.0
2021-03-31 20:59 UTC
Requires
- ext-json: *
- ext-mbstring: *
- doctrine/dbal: ^3.0
- ramsey/uuid: ^4.1
- symfony/yaml: ^5.2
This package is auto-updated.
Last update: 2024-11-17 17:57:47 UTC
README
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"