ln2sql icon indicating copy to clipboard operation
ln2sql copied to clipboard

Steps to use ln2sql

Open kundanvr opened this issue 6 years ago • 5 comments

I am sorry, I am not getting how to use this tool. Can anybody tell me the uses or steps from scratch so that I can understand and use this feature.

kundanvr avatar Aug 29 '19 07:08 kundanvr

Hi i am very much interested with this package and i want to implement it in my tool and what are the step sfor the implementation of the package

kalimuthu123 avatar Dec 09 '19 08:12 kalimuthu123

after running the json file don't was been created.

lucascasserone avatar May 13 '20 02:05 lucascasserone

  1. Clone the below repo to create a local copy on your computer. https://github.com/maverickjoy/ln2sql
  2. Place your database dump file inside the /database folder of the repo. Here, database dump is a file containing all the DDL, DML operations i.e. all information about tables structure and data of the tables.
  3. Now on the command prompt, navigate to the cloned repo and use the following command. python ln2sql.py -d database/city.sql -l lang/english.csv -j output.json -i "how many city there are in which the employee name is similar to aman ?"

Note -

  • The table name, columns name, and data provided in the above command is case sensitive as per the database dump file.
  • The complete repo is in Python 2.7 environment.
  • If you want to use other than English language keywords then place the language configuration file inside /lang directory.

Vikashrajluhaniwal avatar Jun 16 '20 05:06 Vikashrajluhaniwal

@Vikashrajluhaniwal is there possibility of connecting my RDBMS in the aws via sqlalchemy packages instead of placing Dump file in the folder

kalimuthu123 avatar Jun 16 '20 15:06 kalimuthu123

@Vikashrajluhaniwal Don't think it works there is a lot that does not work in this repo: https://github.com/maverickjoy/ln2sql like the formatting of it such as reload and exceptions and print statements.

isaactyj avatar Aug 29 '22 05:08 isaactyj