Skip to main content

odbc (through pyodbc) with a simple (dict-like or list-like) interface

Project description

odbcdol

odbc (through pyodbc) with a simple (dict-like or list-like) interface

To install: pip install odbcdol

Here's how it looks:

from odbcdol import SQLServerPersister

sql_server_persister = SQLServerPersister()

print("Fetching a Record")
print(sql_server_persister[1])
print(sql_server_persister[3])
print("=========================")

print("Adding a Record")
sql_server_persister[3] = {"id": "3", "name": "new name"}
sql_server_persister[4] = {"id": "4", "name": "Hamid NEW"}
sql_server_persister[5] = {"id": "5", "name": "Hamid NEW AGAIN"}

print(sql_server_persister[3])
print(sql_server_persister[4])
print(sql_server_persister[5])
print("======================")

print("Deleting a Record")
del sql_server_persister[3]
del sql_server_persister[4]
del sql_server_persister[5]
print(sql_server_persister[3])
print("=====================")

print("Iterating over the records")
for record in sql_server_persister:
    print(record)
print("=========================")

print("Getting the length")
print(len(sql_server_persister))

Project details


Download files

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

Source Distribution

odbcdol-0.0.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odbcdol-0.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file odbcdol-0.0.3.tar.gz.

File metadata

  • Download URL: odbcdol-0.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for odbcdol-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7046dcbdc7d6b152e27008eade2d1bef42418d1d8dadc1325ea6a1d0c385a311
MD5 b7c698604230fe844f36ab38ce459c88
BLAKE2b-256 5b22d74713840df110103a3781de76f29363cf131e1045150b3c2482b791bbd1

See more details on using hashes here.

File details

Details for the file odbcdol-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: odbcdol-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for odbcdol-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20a03cd62589dc60738d748dbfe37040bcbfff714d52ad33fa82bff37aa629e4
MD5 5b60c229cb9e630c23b08fcc9ed38018
BLAKE2b-256 4c6d462f103932fd951d3d802724434253784a4db4ba1d632583d31952ba8760

See more details on using hashes here.

Supported by

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