a mysql connector
Project description
a lite mysql connector… Name from the Lord of Ring
<=========how to use=========>
from anduin.river import Stream
- cond = [
(col1,’=’,val1), (col2,’=’,val2), ….]
- fields = [
col1, col2 …]
- params = {
key1:val1, key2:val2, …}
find one line of data:
Stream.find(__TableName__,conditions=cond,fields=fields)
return a python dict like { col1:value1,col2:value2…}
find datas
Stream.select(__TableName__,conditions=cond,fields=fields)
return a python list like [{ col1:value1,col2:value2…}]
update data:
Stream.update(__TableName__,conditions=cond,params=params)
return None
insert data:
Stream.insert(__TableName__,params=params)
return None
delete data:
Stream.delete(__TableName__,conditions=cond)
return None
using Stream.query() to execute sql directly like Stream.query(‘select * from table’)
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
File details
Details for the file anduin-1.4.5.tar.gz
.
File metadata
- Download URL: anduin-1.4.5.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa13d61431614400db7785391bd17170b6c92fefc22f8fb29ac823475e3c4b14 |
|
MD5 | 4cfb5c607df7ed829fca743f368e6d98 |
|
BLAKE2b-256 | 33693ce2e0458b60691255fc1477697b6f4daa55669be1edc7d14267b3eae012 |