Package web2py :: Package gluon :: Module dal :: Class SQLiteAdapter

[hide private]
[frames] | no frames]

# Class SQLiteAdapter

source code

        object --+
                 |
    ConnectionPool --+
                     |
           BaseAdapter --+
                         |
                        SQLiteAdapter

Known Subclasses:
  JDBCSQLiteAdapter

Instance Methods | [hide private]

EXTRACT(self, field, what) | source code

__init__(self, db, uri, pool_size=0, folder=global_settings.applications_parent, db_codec=`'``UTF-8``'`, credential_decoder=<function <lambda> at 0xfbf050>, driver_args=`{``}`, adapter_args=`{``}`) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

_truncate(self, table, mode=`'````'`) | source code

lastrowid(self, table) | source code

REGEXP(self, first, second) regular expression operator | source code

_select(self, query, fields, attributes) Simulate SELECT ... | source code

Inherited from `BaseAdapter`: `ADD`, `AGGREGATE`, `ALLOW_NULL`, `AND`, `AS`, `BELONGS`, `COALESCE`, `COALESCE_ZERO`, `COMMA`, `CONTAINS`, `DIV`, `ENDSWITH`, `EQ`, `GE`, `GT`, `ILIKE`, `INVERT`, `JOIN`, `LE`, `LEFT_JOIN`, `LIKE`, `LOWER`, `LT`, `MOD`, `MUL`, `NE`, `NOT`, `NOT_NULL`, `ON`, `OR`, `PRIMARY_KEY`, `RANDOM`, `RAW`, `STARTSWITH`, `SUB`, `SUBSTRING`, `UPPER`, `adapt`, `alias`, `build_parsemap`, `bulk_insert`, `close`, `commit`, `commit_prepared`, `common_filter`, `concat_add`, `constraint_name`, `count`, `create_sequence_and_triggers`, `create_table`, `delete`, `distributed_transaction_begin`, `drop`, `execute`, `expand`, `expand_all`, `file_close`, `file_delete`, `file_exists`, `file_open`, `get_table`, `insert`, `integrity_error`, `integrity_error_class`, `log_execute`, `migrate_table`, `operational_error`, `parse`, `parse_blob`, `parse_boolean`, `parse_date`, `parse_datetime`, `parse_decimal`, `parse_double`, `parse_id`, `parse_integer`, `parse_list_integers`, `parse_list_references`, `parse_list_strings`, `parse_reference`, `parse_time`, `parse_value`, `prepare`, `represent`, `represent_exceptions`, `rollback`, `rollback_prepared`, `rowslice`, `select`, `select_limitby`, `sequence_name`, `tables`, `trigger_name`, `truncate`, `update`

Inherited from `BaseAdapter` (private): `_count`, `_delete`, `_drop`, `_insert`, `_update`

Inherited from `ConnectionPool`: `find_or_make_work_folder`, `pool_connection`

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Static Methods | [hide private]

web2py_extract(lookup, s) | source code

web2py_regexp(expression, item) | source code

Inherited from `ConnectionPool`: `close_all_instances`, `set_folder`

Class Variables | [hide private]

| driver PyMySQL: A pure-Python drop-in replacement for MySQLdb.
| can_select_for_update = `<web2py.gluon.custom_import._Web2pyImp`...`` PyMySQL: A pure-Python drop-in replacement for MySQLdb.
Inherited from `BaseAdapter`: `commit_on_alter_table`, `maxcharlength`, `support_distributed_transaction`, `types`, `uploads_in_blob` Inherited from `ConnectionPool`: `check_active_connection`, `pools`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### EXTRACT(self, field, what)

source code

Overrides: BaseAdapter.EXTRACT

### __init__(self, db, uri, pool_size=0, folder=global_settings.applications_parent, db_codec=`'``UTF-8``'`, credential_decoder=<function <lambda> at 0xfbf050>, driver_args=`{``}`, adapter_args=`{``}`)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: BaseAdapter.__init__

### _truncate(self, table, mode=`'````'`)

source code

Overrides: BaseAdapter._truncate

### lastrowid(self, table)

source code

Overrides: BaseAdapter.lastrowid

### REGEXP(self, first, second)

source code

regular expression operator

Overrides: BaseAdapter.REGEXP
  (inherited documentation)

### _select(self, query, fields, attributes)

source code

Simulate SELECT ... FOR UPDATE with BEGIN IMMEDIATE TRANSACTION. Note that the entire database, rather than one record, is locked (it will be locked eventually anyway by the following UPDATE).

Overrides: BaseAdapter._select

Class Variable Details | [hide private]

### driver

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:
  sqlite3.dbapi2

### can_select_for_update

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