Check out example codes for "drush sql-dump". It will help you in understanding the concepts better.

Code Example 1

drush sql-dump --result-file=../18.sql

Learn ReactJs, React Native from akashmittal.com