OOPDB
OOPDB - OOP wrapper for work with database. For now it's based on sqlite3 python lib.
Supported database features
- Data types
- Integer (DataTypes.INTEGER) - simple type for storing integer numbers
- Text (DataTypes.TEXT) - simple type for storing text/strings with a maximum length of 65'535 bytes
- Rows styling
- Dictionary - result on fetch will be list of dictionaries with keys equals to column names that was used in query
- Tuple - result on fetch will be list of tuples with value order equals to column names order that was used in query
- Expression
- Equal - checks that value in table with given column name matches some given value
- Greater than - checks that value in table with given column name bigger than some given value
- Less than - checks that value in table with given column name less than some given value
- Greater than or equal - checks that value in table with given column name bigger than some given value or equal
- Less than or equal - checks that value in table with given column name less than some given value or equal
- Not equal - checks that value in table with given column name doesn't match some given value
- Like - checks that value in table with given column name matches some given pattern
- Between - checks that value in table with given column name matches some given interval
- In - checks that value in table with given column name consists in the given list of values
- Or - boolean operation that concatenates some other two expressions
- And - boolean operation that concatenates some other two expressions
- Not - negates some expression
- Column configurations
- Column config - base abstraction for describing column configuration using following information
- Name
- Nullability
- Type - type from DataTypes
- Primary key - abstraction based on column config abstraction using following additional information
- Autoincrement
- Foreign key - abstraction based on column config abstraction using following additional information
- Reference table name
- Reference column name
- Column config - base abstraction for describing column configuration using following information
- Commands
- Create table - creates table with the given name and list of column configurations
- Select - select data from the given table and list of given column names in the table
- Distinct - optional configuration for select command to retrieve unique values
- Table names - get all table names that are exist in database
- Column names - get all column names that are exist in the table with the given table name
- Insert into - append row values to the table with the given name and list of column names
- Select count - select row count from the table with the given name
- Distinct - optional configuration for select count command to retrieve count of the unique column values
- Inner join - merges two tables with the given table names and column names
- Order by - sort result by the given lists of column names and orders for each column
- Update - updates the table with the given name by the given lists of column names and new values for that columns
- Where - adds some condition based on Expression abstraction to the database queries
- Delete - deletes rows using conditions
- Last row id - returns the latest row's id that was inserted to the given table
Metadata
Release files for oopdb 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| oopdb-0.0.5.tar.gz | 8.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oopdb-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / oopdb-0.0.5.tar.gz
| Download URL | oopdb-0.0.5.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cc2c7c50a1b099cc99492776b67b7ce5f4ef6ba5afc8d243541556b25016926
|
|
BLAKE2b-256 checksum How to use checksums |
7fbb50fa5b796a355e2abbf65fc83aaf77c9971ccacd97c1f206de0b5da7339f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Release files / oopdb-0.0.5-py3-none-any.whl
| Download URL | oopdb-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a82eae5c29602c2e20d20ae957b85d765bd1408b1a3c7e68d1991ede7d85bf66
|
|
BLAKE2b-256 checksum How to use checksums |
2149008094d5afac69fef0fc959690eec62013586e459692e30d77e80db62f22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Security for oopdb 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.