titan clone s3://titan-data-demo/hello-world/postgres titan-pg
titan ls
source .sourceme
(if you want to persist/inspect the pushes to the ssh server, executesource .sourceme PERSIST
)type liquibase
liquibase generateChangeLog
cat changelog/changelog.yaml
liquibase changeLogSync
psql postgres://postgres:postgres@localhost/postgres -t -c 'SELECT * FROM DATABASECHANGELOG;'
titan commit -m "baselined with Liquibase" titan-pg
cat newtable.yaml >> changelog/changelog.yaml
cat changelog/changelog.yaml
liquibase validate
liquibase updateSQL
liquibase update
psql postgres://postgres:postgres@localhost/postgres -t -c '\d newtable;'
titan commit -m "Created table newtable with Liquibase." titan-pg
psql postgres://postgres:postgres@localhost/postgres -t -c '\dt;'
psql postgres://postgres:postgres@localhost/postgres -t -c 'DROP SCHEMA public CASCADE;'
psql postgres://postgres:postgres@localhost/postgres -t -c '\dt;'
titan log titan-pg
titan log titan-pg | sed '/commit/h; $!d; x'| awk '{print $2}'
titan checkout -c $(titan log titan-pg | sed '/commit/h; $!d; x'| awk '{print $2}') titan-pg
psql postgres://postgres:postgres@localhost/postgres -t -c '\dt;'
titan remote ls titan-pg
titan remote log titan-pg
titan remote add -r ssh ssh://root:root@${SSHSERVER}:22/data titan-pg
titan remote ls titan-pg
titan push -r ssh titan-pg
titan remote log titan-pg
titan run -- --name titan-mongo -p 27017:27017 -d mongo:latest
mongo --eval 'db.employees.insert({firstName: "Adam", lastName: "Bowen"})'
titan commit -m "first employee" titan-mongo
mongo --eval 'db.employees.insert({firstName: "Sanjeev", lastName: "Sharma"})'
mongo --eval 'db.employees.find()'
titan checkout -c $(titan log titan-mongo | sed '/commit/h; $!d; x'| awk '{print $2}') titan-mongo
mongo --eval 'db.employees.find()'
titan clone s3://titan-data-demo/hello-world/dynamodb titan-dynamo
aws dynamodb scan --endpoint http://localhost:8000 --table-name messages | jq -r ".Items[0].message.S"
titan ls
titan rm -f titan-pg
titan rm -f titan-mongo
titan rm -f titan-dynamo
titan ls
docker rm -f titan-sshd