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
.lando.yml
README.md
test-script.sh
test.sql
test2.sql

README.md

SQL Import 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 use db-import events
lando ssh -s database -c "cat /tmp/iran.txt"

# Should persist data after a rebuild
lando rebuild -y
lando mysql database -e "show tables;" | grep users
lando psqlverify | grep users

Destroy tests

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

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