mehr-als-nix / cbtool
v0.0.1-alpha
2016-01-03 20:40 UTC
Requires
- php: >=5.4
- ext-couchbase: >=2.1
- doctrine/dbal: ^2.5.0
- symfony/console: ^2.0
Requires (Dev)
- kherge/box: ^2.5
- phpunit/phpunit: ^4.0
This package is auto-updated.
Last update: 2024-10-29 04:19:50 UTC
README
Couchbase tool.
Installation
$ composer global require mehr-als-nix/cbtool
You can simple create a phar package by using kherge/box
:
$ box build
Configuration
see ./config.ini
cb.bucket=default
cb.username=Administrator
cb.password=Password
sql.database=database
sql.username=root
sql.password=
import.tables=
import.createViews=true
import.typefield=
import.fieldcase=
Commands
flush
Flushes a bucket defined in config.ini
:
$ cbtool flush config.ini
import
Imports doctrine based database tables defined in config.ini
to couchbase:
$ cbtool import config.ini
info
Shows info of a bucket defined in config.ini
:
$ cbtool info config.ini