Skip to main content

a mysql connector

Project description

a lite mysql connector… Name from the Lord of Ring

<=========how to use=========>

from anduin.server import Data

cond = [

(col1,’=’,val1), (col2,’=’,val2), ….]

fields = [

col1, col2 …]

params = {

key1:val1, key2:val2, …}

find one line of data:

Data.find(__TableName__,conditions=cond,fields=fields)

return a python dict like { col1:value1,col2:value2…}

find datas

Data.select(__TableName__,conditions=cond,fields=fields)

return a python list like [{ col1:value1,col2:value2…}]

update data:

Data.update(__TableName__,conditions=cond,params=params)

return None

insert data:

Data.insert(__TableName__,params=params)

return None

delete data:

Data.delete(__TableName__,conditions=cond)

return None

using Data.query() to execute sql directly like Data.query(‘select * from table’)

Project details


Release history Release notifications | RSS feed

This version

1.4.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anduin-1.4.3.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file anduin-1.4.3.tar.gz.

File metadata

  • Download URL: anduin-1.4.3.tar.gz
  • Upload date:
  • Size: 9.5 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

Hashes for anduin-1.4.3.tar.gz
Algorithm Hash digest
SHA256 1b7684def9dceb94d56cff76e3709fe19b575e474a2748c24c6b0abcc0a16d52
MD5 055c44e9a28154789c2965af7ec367c4
BLAKE2b-256 bf667474a11d6dcb37fae02a0b9c3f6b16f938afadb138aec1e2910bff16f182

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page