Skip to main content

Mysql connector skeleton for the x protocol

Project description

MySQL X connector for python

This repo contains a skeleton for mysqlx connector. User has to just create a specific table class which inherits provided table class. Users own table class can contain any kinds of methods to manipulate the table.

This connector uses environment variables to connect to the database. You need to set HOST, PORT, USER, and PASSWORD variables in the environment. By default MySQL uses port 33060 for the X protocol.

Examples

Simple table example:

from mysqlx_connector import Table

class CityTable(Table):

	def get_cities(self):
		return super().parse_results(self._table.select().execute())

Usage of the created table:

city_table = CityTable('cities', 'exampleDatabase')

with city_table as table:
	for row in table.get_cities():
		print(row)

Project details


Download files

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

Source Distribution

mysqlx_connector-0.0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

mysqlx_connector-0.0.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file mysqlx_connector-0.0.3.tar.gz.

File metadata

  • Download URL: mysqlx_connector-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for mysqlx_connector-0.0.3.tar.gz
Algorithm Hash digest
SHA256 85e117bf6a4c78868dba84a4e081cb352c8e5771c3dd446ed93d49bdf501d92b
MD5 253659845fee6dd045c8716034be7324
BLAKE2b-256 7622863ed9eac984c5c270a28900db121cabb72ee8f0ee19e0a27a50b32fe7d6

See more details on using hashes here.

File details

Details for the file mysqlx_connector-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mysqlx_connector-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for mysqlx_connector-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18044cd0ef552c6f7b77245599f4b7e50aab3547bab358e85dc6bce1616f3837
MD5 c40b8b651200311e868e4ea77f57a738
BLAKE2b-256 3a2c721af62424d1c37ef4f244aabb33c15ba3fc49adca577060e33c107b18a9

See more details on using hashes here.

Supported by

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