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_db 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.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

light_sql3-1.0.0-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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