Overview ======== Requirements ============ * JRuby (ideally through RVM) * manual install of jruby-openssl gem: `rvm use jruby; gem install jruby-openssl gem` Usage ===== kvm --help Tasks: kvm checkout [path] ... kvm config ... kvm create-user ... kvm def ... kvm drop-user ... kvm fetch -[-dist] ... kvm generate-datasets - [-d dataset1,dataset2] [-t oracle... kvm get -[-dist] ... kvm help [TASK] ... kvm install-dataset - dataset [type] ... kvm install-testtables - [type] ... kvm list ... kvm list-datasets ... kvm run-sql file ... kvm undef ... kvm update [path] ... To generate dataset SQL: kvm generate-datasets rice-1.0.3.1 To install SQL: kvm install-dataset --url jdbc:oracle:thin:@localhost:1521:xe --username rice_test --password rice_test rice-1.0.3.1 bootstrap-server oracle Database Arguments ================== Several commands take database connection arguments. A database connection consists of: * jdbc url * username * password * type (oracle or mysql) There are two provisions for specifying these components, either directly, or via the `--db` options hash, and the two styles can be mixed. Directly: `--url jdbc:oracle:thin:@127.0.0.1:1521:xe --username user --password password --type oracle` Options hash: `--url jdbc:oracle:thin:@127.0.0.1:1521:xe --db username:user password:password type:oracle` Two other options are also available: * alias * jar If you have defined a db alias (via `define-db` command) then you can simply use the `--alias mydb` option to refer to the predefined db alias. This will save repetition. Some commands also require the JDBC driver jar to be specified. This can be done via the `--jar /path/to/ojdbc14.jar` option. Improvements ============ * better command documentation * better effort at automatically locating jdbc driver jars, and saving with db aliases * secure wallet functionality is sort of lame, it would be nice to take advantage of native keychain functionality if it exists