# -*- coding: iso-8859-1 -*-
#-----------------------------------------------------------------------------
# Modeling Framework: an Object-Relational Bridge for python
#
# Copyright (c) 2001-2004 Sbastien Bigaret <sbigaret@users.sourceforge.net>
# All rights reserved.
#
# This file is part of the Modeling Framework.
#
# This code is distributed under a "3-clause BSD"-style license;
# see the LICENSE file for details.
#-----------------------------------------------------------------------------
"""
MySQLAdaptorLayer
This package is for use by the core to interact with MySQL databases.
It requires:
- 'MySQL-python', v0.9.2'
Model & Connection Dictionaries:
'adaptorName' -- should be 'MySQL'
'database' -- the name of the database
'host' -- where the mysql server is hosted
'user', 'password' -- user credentials
'port' -- optional; the port to which the database server listens to
Supported SQL datatypes are:
VARCHAR, CHAR, TEXT,
DOUBLE, FLOAT, INT, INTEGER, NUMERIC,
DATE, TIME, DATETIME
"""
def adaptorFactory():
from MySQLAdaptor import MySQLAdaptor
return MySQLAdaptor
|