Skip to main content

Light cover for sqlite3

Project description

Light db

Light db this is easy cover for database sqlite3

How to use

from light_sql3 import DataBase

example = DataBase(
    name="light_db"
)

# Method insert (return type bool)
example.insert(id="some_id", value="some_value")


# Method get (return value by id)
print(example.get(id="some_id"))


# Method add (return type bool)
example.add(id="some_id", num=100)


# Method remove (return type bool)
example.remove(id="some_id", num=100)


# Method all (return all values from table)
print(example.all())


# Method update (return type bool)
example.update(id="some_id", value=1000)


# Method has (return type bool)
print(example.has(id="some_id"))


# Method delete (return type bool)
example.delete(id="some_id")

# I think the command names make it clear what exactly they do

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

light_sql3-1.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

light_sql3-1.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file light_sql3-1.0.1.tar.gz.

File metadata

  • Download URL: light_sql3-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Windows/10

File hashes

Hashes for light_sql3-1.0.1.tar.gz
Algorithm Hash digest
SHA256 31d28ab9de2ce497c0185c1b579d0cea24ecabeca7982d7aa41aeb4d09ab7bda
MD5 ae2272e80bcf7a01832dabbd3e27c4b7
BLAKE2b-256 6895b9321004a2967a91ca7bf1b29ed63c93a3fd490c15d8f1397c0967a630e4

See more details on using hashes here.

File details

Details for the file light_sql3-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: light_sql3-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Windows/10

File hashes

Hashes for light_sql3-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ffaa632de3441f31cbdbc24c1716355fe3ebfce4f0e47b1224bd97c30529fc8
MD5 d47efaa900561f3d9428d3443aa4997d
BLAKE2b-256 96b50a7339f3084bc273361a53f6e53c0c2b6971084ec95d0729af159a480c21

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