First import the DB name
from mydbpackage.database import MyDB
Then Connect your DB
db = MyDB("host", "username", "databasename")
Create table
db.create_table("table name",[column name]) # pass the table name in must br string # column name must be list
Insert the valuve
db.insert_log('[[Value]]',"table name") # pass the value [['name','20','30'],['tesname','10','10']]
Release files for mydbpackage 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mydbpackage-0.2.4.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mydbpackage-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / mydbpackage-0.2.4.tar.gz
| Download URL | mydbpackage-0.2.4.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74c96cb7799c51e3a1dffbb6a0855bce1f02a2ae0d7f748ae6a4104f470e1eee
|
|
BLAKE2b-256 checksum How to use checksums |
144ef383d1907149779ffbf03ab7b55e7b6a17d3a276a55121b4997ba92eb186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / mydbpackage-0.2.4-py3-none-any.whl
| Download URL | mydbpackage-0.2.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5ca93dc093363e29dac5daf07b1b2bbcc1dc11dab7c90c314caf50c87ccfbf7
|
|
BLAKE2b-256 checksum How to use checksums |
e2cf9789282250900241989d17e50dfe18af4d4ab373802585b5dd94ca135b76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|