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.7.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

mysqlx_connector-0.0.7-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mysqlx_connector-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 08f935724b991c4aa8393fdc98ef670274e3237faeb671955f6086f911e2ce4b
MD5 b2c55ca31eed4126f9d7925306c423ab
BLAKE2b-256 12f80e03a4d86563599a79a72a549004117e010c21c6a1abb7cb632ada5d20c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mysqlx_connector-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4878fbe1b6b1009ed2359318d883b8e6a8e79bc6a7dffe3dba9d33b9504115bd
MD5 a2f1c51eed5cf874b98dd36184d3cd58
BLAKE2b-256 55d5bfafb7e59313e358ef3e40dd0d166fb57e79eab32c84c4cbfa97317f0d9b

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