Package orm2 :: Package adapters :: Package firebird :: Module datasource :: Class datasource
[hide private]
[frames] | no frames]

Class datasource

source code

        sql.datasource --+    
                         |    
datasource.datasource_base --+
                             |
                            datasource

Instance Methods [hide private]
  __init__(self, **kw)
This constructor supports all those key word parameters the kinterbas.connect() function supports:
  _from_params(kw)
  backend_encoding(self)
  insert(self, dbobj, dont_select=False)
Firebird does not provide a mechanism that let's me query the id of the last row I inserted.

Inherited from datasource.datasource_base: close, commit, count, cursor, delete_by_primary_key, execute, flush_updates, join_select, primary_key_where, query_one, rollback, run_select, select, select_after_insert, select_after_insert_where, select_by_primary_key, select_for_update, select_one, update, update_cursor

Inherited from datasource.datasource_base (private): _dbconn

Inherited from sql.datasource: escape_string, identifyer_quotes, string_quotes


Static Methods [hide private]
  from_params(kw)

Class Variables [hide private]
  encodings = {"ascii": "ascii", "iso8859_1": "iso-8859-1", "iso88...

Inherited from datasource.datasource_base: escaped_chars

Inherited from datasource.datasource_base (private): _format_funcs


Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

This constructor supports all those key word parameters the kinterbas.connect() function supports:

For details on any of these parameters see http://kinterbasdb.sourceforge.net/dist_docs/usage.html#tutorial_connect
Parameters:
  • dsn - A DSN pointing to the desired database
  • user - Username
  • password - The corresponding password
  • host - The database host (if no DSN given)
  • database - The database path (if no DSN given)
  • charset - Charset for this connection. Unicode strings will be uncoding using this charset before they are sent to the database. Note that this requires a backend encoding name (see this site for details.
  • dialect - Chose the SQL dialect to use. This doesn't influence anything orm does (up to now).
Overrides: datasource.datasource_base.__init__

_from_params(kw)

source code 
None

from_params(kw)
Static Method

source code 
None

backend_encoding(self)

source code 
None
Overrides: sql.datasource.backend_encoding

insert(self, dbobj, dont_select=False)

source code 
Firebird does not provide a mechanism that let's me query the id of the last row I inserted. This has to be done *before* the INSERT.
Overrides: datasource.datasource_base.insert

Class Variable Details [hide private]

encodings

None
Value:
{"ascii": "ascii", "iso8859_1": "iso-8859-1", "iso8859_2": "iso-8859-2
", "iso8859_3": "iso-8859-3", "iso8859_4": "iso-8859-4", "iso8859_5": 
"iso-8859-5", "iso8859_6": "iso-8859-6", "iso8859_7": "iso-8859-7", "i
so8859_8": "iso-8859-8", "iso8859_9": "iso-8859-9", "iso8859_10": "iso
-8859-10", "iso8859_11": "iso-8859-11", "iso8859_12": "iso-8859-12", "
iso8859_13": "iso-8859-13", "UNICODE_FSS": "utf-8"}