web2py.gluon.contrib.pymysql

Package web2py :: Package gluon :: Package contrib :: Package pymysql |
[hide private]
[frames] | no frames]

# Package pymysql

source code

PyMySQL: A pure-Python drop-in replacement for MySQLdb.

Copyright (c) 2010 PyMySQL contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version: 0.4.None

Submodules | [hide private]
web2py.gluon.contrib.pymysql.constants web2py.gluon.contrib.pymysql.constants.FIELD_TYPE web2py.gluon.contrib.pymysql.converters

Classes | [hide private]
| DBAPISet
| DataError Exception raised for errors that are due to problems with the processed data like division by zero, numeric value out of range, etc.
| DatabaseError Exception raised for errors that are related to the database.
| Date date(year, month, day) --> date object
| Error Exception that is the base class of all other error exceptions (not Warning).
| IntegrityError Exception raised when the relational integrity of the database is affected, e.g.
| InterfaceError Exception raised for errors that are related to the database interface rather than the database itself.
| InternalError Exception raised when the database encounters an internal error, e.g.
| NotSupportedError Exception raised in case a method or database API was used which is not supported by the database, e.g.
| OperationalError Exception raised for errors that are related to the database's operation and not necessarily under the control of the programmer, e.g.
| ProgrammingError Exception raised for programming errors, e.g.
| Time time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object
| Timestamp datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
| Warning Exception raised for important warnings like data truncations while inserting, etc.

Functions | [hide private]
Binary(x) Return x as a binary type. | source code
Connect(*args, **kwargs) Connect to the database; see connections.Connection.__init__() for more information. | source code
Connection(*args, **kwargs) Connect to the database; see connections.Connection.__init__() for more information. | source code
DateFromTicks(ticks) |
TimeFromTicks(ticks) |
TimestampFromTicks(ticks) |
connect(*args, **kwargs) Connect to the database; see connections.Connection.__init__() for more information. | source code
escape_dict(val, charset) | source code
escape_sequence(val, charset) | source code
escape_string(value) | source code
get_client_info() | source code
install_as_MySQLdb() After this function is called, any application that imports MySQLdb or _mysql will unwittingly actually use | source code
thread_safe() | source code

Variables | [hide private]
| BINARY = `DBAPISet([249, 250, 251, 252])`
| DATE = `DBAPISet([10, 14])`
| DATETIME = `DBAPISet([12, 7])`
| NULL = ``'``NULL``'``
| NUMBER = `DBAPISet([0, 1, 3, 4, 5, 8, 9, 13])`
| ROWID = `DBAPISet([])`
| STRING = `DBAPISet([253, 254, 247])`
| TIME = `DBAPISet([11])`
| TIMESTAMP = `DBAPISet([12, 7])`
| VERSION = ``(`0`,` 4`,` None`)``
| apilevel = ``'``2.0``'``
| paramstyle = ``'``format``'``
| threadsafety = `<web2py.gluon.custom_import._Web2pyImporter obj`...`` PyMySQL: A pure-Python drop-in replacement for MySQLdb.
| version_info = ``(`1`,` 2`,` 2`,` `'``final``'``,` 0`)``

Variables Details | [hide private]

  ### threadsafety PyMySQL: A pure-Python drop-in replacement for MySQLdb. Copyright (c) 2010 PyMySQL contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Value:
      global_settings.applications_parent