Skip to main content

MySQL-easy provides an easy access to MySQL database

Project description

MySQL easy

MySQL easy is a tool to augment your database development using MySQL.

It is also an intelligent code generator. It generates code for you in SQL or in Python based on your table structure and relationships between the table. This tool will help debug larger database applications easily and write code in matter of clicks that you may require few days of effort.

Pre-requisite

pymysql => pip install pymysql mysql => pip install mysql-connector-python redis => pip install redis

SQL code

Sample code that you can use to create a table named user with three columns user_id, last_name and first_name.

CREATE TABLE `user` (
  `user_id` int(11) NOT NULL AUTO_INCREMENT,
  `first_name` varchar(70) DEFAULT NULL,
  `last_name` varchar(70) DEFAULT NULL,
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

Code generation

Use MySQLeasy to generate code for your table. Once python class for user is generated run it.

Python code

Following code will insert a new user John Smith. Then search the records with last name Smith. Then update the first name to Mike in the first row. Update the records in database and at the end close the connection.

from mysqleasy.Connection import Connection as Connection
from mysqleasy.Access import Access as Access
connector = "mysqlconnector"
db_config = {'host': 'your_database_host_address', 'user': 'your_database_user_name', 'password': 'your_database_password'}
conn = Connection.create(connector, db_config)
last_row_id = user.insert(conn, first_name = "John", last_name = "Smith")
columns, users = user.search(conn, last_name='Smith')
user_list = [o for o in Access.iter_object(columns, users)]
last_row_id, count_affected = user.insertupdate_multiple(conn, [('Mike', 'Smith', 1)])
conn.commit()
conn.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mysqleasy-0.0.1-cp312-cp312-win_amd64.whl (154.8 kB view details)

Uploaded CPython 3.12Windows x86-64

mysqleasy-0.0.1-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

mysqleasy-0.0.1-cp311-cp311-win_amd64.whl (154.9 kB view details)

Uploaded CPython 3.11Windows x86-64

mysqleasy-0.0.1-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

mysqleasy-0.0.1-cp310-cp310-win_amd64.whl (153.6 kB view details)

Uploaded CPython 3.10Windows x86-64

mysqleasy-0.0.1-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

mysqleasy-0.0.1-cp39-cp39-win_amd64.whl (154.9 kB view details)

Uploaded CPython 3.9Windows x86-64

mysqleasy-0.0.1-cp39-cp39-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

File details

Details for the file mysqleasy-0.0.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: mysqleasy-0.0.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 154.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for mysqleasy-0.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 abcd7043c854ebe2aaca54e8997bb246fa81dfef3472d228e12c9baaaae41599
MD5 f8f4d159f976c4f6ac23b3ed8db91805
BLAKE2b-256 69a871612e368c5ff9d1d61854934b58ce6d4ba6924c62d53d6099793c89a668

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for mysqleasy-0.0.1-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e081e915e24fa35b38597993df933aa0e6c2d8b01272b52d24d726d4e31a0cb
MD5 25484fb90048bcb41a2203c197697513
BLAKE2b-256 fe0c53ae757c004e08650d965bf4eec75596a0276e3bde1479428c5e6b14df53

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: mysqleasy-0.0.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 154.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for mysqleasy-0.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d941af8d7e370984176f45e4a06f94d496d8c59ea8095c14cc5cdfd836ad3aa4
MD5 39b6946a0ed2308ed48174f78a8ae767
BLAKE2b-256 a5efb8c81b1d937bd0df936b67a452eb1d01205faa61beeac9e6f2e2d96656f2

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for mysqleasy-0.0.1-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4bc77cd9325d3c8402f70450d74e32f2057add7ea08a7e1c27bf5fe11c65999
MD5 4492970cdcfba061c68332a611ec0b7c
BLAKE2b-256 743a9880f7a0a305867536c4f8b54da71d1b264af426077641a6a91d4ad89623

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: mysqleasy-0.0.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 153.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for mysqleasy-0.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 387f481bcc2b761c40f4f3d96de902bfeed6d5e7438b61d9ef88849edb84fdc0
MD5 c2fbf584ffb1579c5437328eade47740
BLAKE2b-256 0826a24430d9a070dc1158e5ae6dcba7ecadd3f10f51cade86442ed8da699363

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for mysqleasy-0.0.1-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 241155141da65765cce85704073e34ff80204a7e5e62341ff06c36df6c56579b
MD5 fa25a4604f96666e859836ac2c12a1e0
BLAKE2b-256 197fe38afa0c5d2e3cedf3e2cd0173ddcc070510ab3fc78e9d6a63e1727cdf63

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: mysqleasy-0.0.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 154.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for mysqleasy-0.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 143a1027892a74cee4e30e17337310f8d5b15a81175f0c7d61acf9bc95495215
MD5 9d19cfa5a0554d78068741be587de5d2
BLAKE2b-256 fa1f433a4dbda75762224e4a0149977c7cdf2969c4467a0a1e77a1d53ad1d33a

See more details on using hashes here.

File details

Details for the file mysqleasy-0.0.1-cp39-cp39-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for mysqleasy-0.0.1-cp39-cp39-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bda1c34f342d6b2db722a909db6b4a3ea8baae31976323025e0a67c80b31a766
MD5 1db2becfaa3b2b435ec5a5e17a61dd00
BLAKE2b-256 af02dbdcec89a3ae769af42b0e10df6d4467c3eaad0f098441162ffc54c06df7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page