Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore #5000: wp Dec 25, 2018
.lando.yml
README.md
test.sql
test2.sql

README.md

SQL Export Example

This example exists primarily to test the following documentation:

Start up tests

Run the following commands to get up and running with this example.

# Should start up successfully
lando poweroff
lando start

Verification commands

Run the following commands to validate things are rolling as they should.

# Should be able to connect to the relevant databases
lando mysql database -e quit
lando psqlverify

# Should be able to import into database by default
lando db-import test.sql
lando mysql database -e "show tables;" | grep users

# Should be able to import into user specified database
lando db-import -h database2 test2.sql
lando psqlverify | grep users

# Should be able to export the contents of the dbs
lando db-export
lando db-export -h database2

# Should export to filename if specified
lando db-export database.dump.sql
lando db-export -h database2 database2.dump.sql

# Should dump ungizzeed stdout
lando db-export --stdout > thing.sql
cat thing.sql | grep Dump

Destroy tests

Run the following commands to trash this app like nothing ever happened.

# Should be destroyed with success
lando destroy -y
lando poweroff