Skip to main content

mysql_fastconnector

"mysql_fastconnector" is a module or library designed to simplify MySQL database interactions and CRUD operations.

if you're considering using "mysql_fastconnector" in your projects, it's essential to refer to its resources to get a more detailed understanding of its capabilities, how to integrate it into your applications, and any specific benefits it offers compared to other MySQL connectors or libraries. Additionally, checking for updates and community feedback can help you gauge its reliability and suitability for your needs.

Required Mysql client and connector

pip install mysqlclient
pip install mysql-connector-python
pip install pymysql

Mysql Database connection example

from  mysql_fastconnector import  Model ,table,query

obj=Model.connect(database="user", user = "root", password = "admin123", host = "127.0.0.1")

Mysql Query Example

res=query("select * from users").fetchAll()
for v in res: 
   print(res)

Object based Query Example

res=table("players").all()
res=table("players").one()
res=table("players").fromTable('pk').where('pk=37').all()
res=table("players").fromTable('pk').where('pk=37').limit(0,50).all()
res=table("players").fromTable('players.pk').leftJoin('player_images','player_id=players.pk').where('players.pk=37').limit(0,50).all()
res=table("players").fromTable('players.pk').rightJoin('player_images','player_id=players.pk').where('players.pk=37').limit(0,50).all()
for v in res:   
    print(res)

## Print Query Example

users=table("users")
users.printQuery=True
res=users.fromTable('users.pk').leftJoin('images','user_id=users.pk').where('users.pk=27').limit(50,0).all()

for v in res:   
    print(res)

## Sub Query Example

users=table("users")
users.printQuery=True
users.subQuery("(select count(*) from users ) as m,")
res=users.fromTable('users.pk').leftJoin('images','user_id=users.pk').where('users.pk=27').limit(50,0).all()

for v in res:   
    print(res)

Insert Example

id=obj.table("players").insert({'first_name':'r222222222','last_name':'r33333333','id':'555','email':'aa@gmail.com','mobile':'987654321'}).getId()
print(id)

ids=obj.table("players").insertMany([{'first_name':'r222222222','last_name':'r33333333','id':'555','email':'aa@gmail.com','mobile':'987654321'},{'first_name':'r222222223333333333','last_name':'r33333333','id':'555','email':'aa@gmail.com','mobile':'987654321'}])
print(ids)

update Example

id=obj.table("players").update({'first_name':'0000000000000000000','last_name':'r33333333','id':'555','email':'aa@gmail.com','mobile':'987654321'},"pk=66")

delete Example

table("players").delete("pk=66")

Any help , contact me

email : ilayaraja.python@gmail.com

Metadata

Release files for mysql-fastconnector 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mysql-fastconnector 0.0.7
File Size Uploaded
mysql_fastconnector-0.0.7.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mysql-fastconnector 0.0.7
File Interpreter ABI Platform
mysql_fastconnector-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / mysql_fastconnector-0.0.7.tar.gz

Download URL mysql_fastconnector-0.0.7.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
05f380fe12420de7742cc82bf40840c1bf3843866b850572262d8b1bbe0d7761
BLAKE2b-256 checksum
How to use checksums
f75dae841507a23d5f73cf8372029288fd52990ee6237852d2927c8969cac219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / mysql_fastconnector-0.0.7-py3-none-any.whl

Download URL mysql_fastconnector-0.0.7-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
759f04fa09fe4385213c109626218153dc1fcf5262267a167141e1cc815f213f
BLAKE2b-256 checksum
How to use checksums
2b5d096c19886b9f6536ea91f9c8d66b308af0b0ced37c7ea27f495578b7b9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page