Check out example codes for "sqlmap". It will help you in understanding the concepts better.

Code Example 1

git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev

Learn ReactJs, React Native from akashmittal.com