Easy SQL Used pymysql
Project description
- Name:
easySQL
- Function:
use easy function to execute pyMySQL module
- Defect:
only easy SQL can be used
database connect:
db=easySQL(databaseName, user, passwd, host) or easySQL(database)
table creat:
table = tableSQL(tableName, engine, charset)
table.addAttribute(aName, aType, aLong, default, isNotNull, isPrimaryKey, isAuto, isUnique, isUnsigned)
sql = table.creatLanguage()
db.commit(sql)
data find:
data = db.find(tableName, key1=value1, key2=value2…)
data add:
db.add(tableName, key1=value1, key2=value2…) or db.add(tableName, data)
data delete:
db.delete(tableName, key1=value1, key2=value2…) or db.add(tableName, data)
data update:
db.update(data, key1=value3, key2=value4…)
other:
db.commit(sql) or db.getData(sql)
data add dataList:
add all data in dataList. if input data is not list, it will be list in this function. this function need all input list type have the same length.
db.addList(tableName, key1=list1, key2=list2…)
data add(data add data rather than data add to table)
data.add(data1)
creat table by DIC(json.loads()):
db.creat(tableName, childDeep=0, **kwargs)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.