Easy SQL Used pymysql
Project description
- Name:
easySQL
- Function:
use easy function to execute pyMySQL module
- Defect:
only easy SQL can be used
use:
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)
2.0.4:
fix the columns in mysql maybe in confusion
2.0.5:
you can get data by a dict type
2.0.6:
fix a bug that dict use the same addr
2.0.7:
Modify a small amount of code and logic to improve efficiency
db.commit(sql) change to db.execute(sql)
you can use db.addSQL(sql(s)) db.showSQL(index=None) db.deleteSQL(index=None) to change sqlList and then db.commit() to run sqlList
2.0.8:
fix a wrong that NoneType in data
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easySQL_fiachia-3.2.8.tar.gz.
File metadata
- Download URL: easySQL_fiachia-3.2.8.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
383a2bdaa46ae90fa4d5af9186110efbebc47e2d49ecad58d04eb949ebb7b85d
|
|
| MD5 |
8a940e796078f7dffb2e4852fb894374
|
|
| BLAKE2b-256 |
bea78f96d6f9edf7171bdc6772ff3771086ae9e908e3778b9f2c95bffa0e05d9
|
File details
Details for the file easySQL_fiachia-3.2.8-py2.py3-none-any.whl.
File metadata
- Download URL: easySQL_fiachia-3.2.8-py2.py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca33a4cb70521f699786d8a4886d8703ffb893f8734507929aff2ae37b309fb
|
|
| MD5 |
69bf2ccfeb769ec6c48e924f702aa688
|
|
| BLAKE2b-256 |
daca21e565a623efd16ee209da00da49dfeee4fc3e49eacbba5e86a86cc5ca76
|