Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Symfony 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 symfony -e quit

# Should report symfony requirements are met
lando symfony check:requirements

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

# Should be able to import into user specified database
lando db-import -h database mysql-test.sql
lando mysql symfony -e "show tables;" | grep users

# Should be able to export the contents of the dbs
lando db-export
lando db-export -h database another-one.sql

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

# Should export to absolute path if specified
lando db-export /tmp/database.dump.sql
lando exec database -- stat /tmp/database.dump.sql.gz

# 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