Python package for simplyfying querying process of mysql
Project description
Flexi MySQL
Flexi MySQL is a Python module designed to streamline the process of interacting with MySQL databases. This module offers a variety of functions that significantly reduce the need for manually typing queries, executing them, and handling the results or committing data to the database. Additionally, for scenarios requiring raw SQL queries, the module provides support for creating such queries using MySQL
Examples
Fetching results from the database
from flexi_mysql import flexi_mysql
myobj = simple_mysql.connect(host="localhost", user = "root",database="test", password="")
print(myobj.fetch_result(tables = ["t1"], where="id = 2"))
Documentation
| Name | Description |
|---|---|
create_database |
Create New Database |
drop_database |
Delete Database |
create_table |
Create a new table |
drop_table |
Deletes the specified table |
truncate_table |
Deletes the contents from the specified table |
show_tables |
Shows all tables in the connected database |
show_databases |
Shows all databases |
add_column |
Adds a new column to the specified table |
drop_column |
Deletes the specified column from the table |
modify_column |
Modify the colummn of a table |
drop_primarykey |
Delete the primary key from the table specfied |
drop_foreignkey |
Delete the foriegn key from the table specified |
describe_table |
Shows the structure of the specified table |
fetch_result |
Used to fetch results from the database |
update_value |
Update the values in the specified table. |
insert_value |
Used to insert a single set of values to the specified table. |
insert_values |
Used to insert multiple sets of values to the specified table. |
delete_value |
Deletes value(s) from the specified table |
inner_join |
Used for INNER JOIN of two tables |
left_join |
Used for LEFT JOIN of two tables |
right_join |
Used for RIGHT JOIN of two tables |
cross_join |
Used for CROSS JOIN of two tables |
raw_query |
Used for fetching results from a table using MySQL Query |
raw_update |
Used for updating values to a table using MySQL Query |
raw_delete |
Used for deleting values from a table using MySQL Query |
close_connection |
Used to close the connection to the database. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flexi_mysql-0.1.0.tar.gz.
File metadata
- Download URL: flexi_mysql-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e4be55b8d82a9be8d184c886902ba2a778bba767e5af3e34b8f10cae2830e2
|
|
| MD5 |
f3166d80f674d393460afca2d162b6d5
|
|
| BLAKE2b-256 |
8f79ee20a3475aadea4966f11d70271d7fe8ffad28068c81fa547a6888cd79b7
|
Provenance
The following attestation bundles were made for flexi_mysql-0.1.0.tar.gz:
Publisher:
python-publish.yml on eternity2745/flexi-mysql
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flexi_mysql-0.1.0.tar.gz -
Subject digest:
66e4be55b8d82a9be8d184c886902ba2a778bba767e5af3e34b8f10cae2830e2 - Sigstore transparency entry: 168302757
- Sigstore integration time:
-
Permalink:
eternity2745/flexi-mysql@850f24f45dfb6200905185cc0e4c78d14e1bfb26 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/eternity2745
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@850f24f45dfb6200905185cc0e4c78d14e1bfb26 -
Trigger Event:
release
-
Statement type:
File details
Details for the file flexi_mysql-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flexi_mysql-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4b04db296ebd14a60d138c5416d7e323742ed9782eddfad196543557110ada7
|
|
| MD5 |
e3e670ec993ca73d0ae9d737f594a13f
|
|
| BLAKE2b-256 |
3906c7a80fe95a1cb30d9db243b88524379a191c380cb98faf606528ebc25270
|
Provenance
The following attestation bundles were made for flexi_mysql-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on eternity2745/flexi-mysql
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flexi_mysql-0.1.0-py3-none-any.whl -
Subject digest:
b4b04db296ebd14a60d138c5416d7e323742ed9782eddfad196543557110ada7 - Sigstore transparency entry: 168302760
- Sigstore integration time:
-
Permalink:
eternity2745/flexi-mysql@850f24f45dfb6200905185cc0e4c78d14e1bfb26 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/eternity2745
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@850f24f45dfb6200905185cc0e4c78d14e1bfb26 -
Trigger Event:
release
-
Statement type: