Package: quick-sql
#Quick SqlIt's a python library written purely in Python to do faster and better sqlite operationsWhy Quick Sqlite?No need to write such a lengthy SQL code.No need to create custom function for query.Best for lightweight and simpleSqlite3operationsNew features almost every week :)Main ContentsDatabase()Class containing methods and Sqlite operations.create_table()Function use to create table.insert()Function use to insert data.select_all()Function use to select all data from a column.select_from()Function use to select data from a single row.update()Function use to update data.delete()Function use to delet row.Database()ClassThis is the class which is responsible for database creation and all the operation under a database.Database(db_name)ParametersIt takes one parameter.db_nameMust be endswith ".db" extensionExamplesHere is an exampleClick here!Database.create_table()FunctionThis is the function which is used to create table in databaseDatabase.create_table(table_name,**kwargs)ParametersIt takes 1 or more parameterstable_nameName of the table you want to be in your databasekwargs must be in the formcolumn_name = dtypeDtype must be valid sqlite datatype.ReturnNoneExamplesHere is an exampleClick here!Database.insert()FunctionThis function is used to insert data in table.Database.insert(table_name,column,data_to_insert)ParametersIt takes 3 parameterstable_nameName of the table in which you want to insert data.columnsName of the column in which you want to insert data.Must be list.data_to_insertData which you want to insert.Must be listNotelen(column)must be equal tolen(data_to_insert)column[0]will store the data which is atdata_to_insert[0]ReturnNoneExamplesHere is an exmaple.Click here!Database.select_all()FunctionThis function is used to select all the data from a given columnDatabase.select_all(table_name,column,fetch="single")ParametersIt takes 3 parameters , 2 are must and other is optionaltable_nameName of the table from which you want to get or select data.columnName of the column.fetchThis depend upon you if you want tofetchall()use "all" otherwise "single".Default is "single"ReturnTupleExamplesHere is an example.Click here!Database.select_from()FunctionThis function is used to select data from a particular row.Database.select_from(table_name,column,from_where,fetch="single")ParametersIt takes 4 parameter, 3 are must and other is optionaltable_nameName of the table from which you want to get or select data.columnName of the column.from_whereIt is the list of value and a pair from where you want to get data.fetchThis depend upon you if you want tofetchall()use "all" otherwise "single".Default is "single"Notelen(from_where)should be equals to 2from_where[0]should be a column name andfrom_where[1]should be the value of that column which belongs to a row.ReturnTupleExamplesHere is an example.Click here!Database.update()FunctionThis function is use to update data of table.Database.update(table_name,column,value,from_where)ParametersIt takes 4 parameters.table_nameThe table in which you want to update data.columnColumn name.Must be a list.valueValue which going to be store in that.Must be a list.from_wherePair of column and value.Must be a list.Notelen(column)==len(value)column[0]store the data invalue[0]ReturnNoneExamplesHere is an example.Click here!Database.delete()FunctionThis function is use to update data of table.Database.update(table_name,from_where)ParametersIt takes 2 parameters.table_nameThe table in which you want to delete data.from_wherePair of column and value.ReturnNoneExamplesHere is an example.Click here!