Package web2py :: Package gluon :: Module dal :: Class NoSQLAdapter
[hide private]
[frames] | no frames]

Class NoSQLAdapter

source code

    object --+        
             |        
ConnectionPool --+    
                 |    
       BaseAdapter --+
                     |
                    NoSQLAdapter
Known Subclasses:
CouchDBAdapter, GoogleDatastoreAdapter, MongoDBAdapter

Instance Methods [hide private]
 
represent(self, obj, fieldtype) source code
 
_insert(self, table, fields) source code
 
_count(self, query, distinct=1) source code
 
_select(self, query, fields, attributes) source code
 
_delete(self, tablename, query) source code
 
_update(self, tablename, query, fields) source code
 
commit(self)
remember: no transactions on many NoSQL
source code
 
rollback(self)
remember: no transactions on many NoSQL
source code
 
close(self)
remember: no transactions on many NoSQL
source code
 
OR(self, first, second) source code
 
AND(self, first, second) source code
 
AS(self, first, second) source code
 
ON(self, first, second) source code
 
STARTSWITH(self, first, second=1) source code
 
ENDSWITH(self, first, second=1) source code
 
ADD(self, first, second) source code
 
SUB(self, first, second) source code
 
MUL(self, first, second) source code
 
DIV(self, first, second) source code
 
LOWER(self, first) source code
 
UPPER(self, first) source code
 
EXTRACT(self, first, what) source code
 
AGGREGATE(self, first, what) source code
 
LEFT_JOIN(self) source code
 
RANDOM(self) source code
 
SUBSTRING(self, field, parameters) source code
 
PRIMARY_KEY(self, key) source code
 
LIKE(self, first, second) source code
 
drop(self, table, mode) source code
 
alias(self, table, alias)
given a table object, makes a new table object with alias name.
source code
 
migrate_table(self, *a, **b) source code
 
distributed_transaction_begin(self, key) source code
 
prepare(self, key) source code
 
commit_prepared(self, key) source code
 
rollback_prepared(self, key) source code
 
concat_add(self, table) source code
 
constraint_name(self, table, fieldname) source code
 
create_sequence_and_triggers(self, query, table, **args) source code
 
log_execute(self, *a, **b) source code
 
execute(self, *a, **b) source code
 
represent_exceptions(self, obj, fieldtype) source code
 
lastrowid(self, table) source code
 
integrity_error_class(self) source code
 
rowslice(self, rows, minimum=0, maximum=1)
by default this function does nothing, overload when db does not do slicing
source code

Inherited from BaseAdapter: ALLOW_NULL, BELONGS, COALESCE_ZERO, COMMA, CONTAINS, EQ, GE, GT, INVERT, JOIN, LE, LT, MOD, NE, NOT, NOT_NULL, __init__, bulk_insert, count, create_table, delete, expand, file_close, file_delete, file_exists, file_open, filter_tenant, get_table, insert, integrity_error, parse, select, select_limitby, sequence_name, tables, trigger_name, truncate, update

Inherited from BaseAdapter (private): _drop, _truncate

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]
 
to_unicode(obj) source code

Inherited from ConnectionPool: close_all_instances, set_folder

Class Variables [hide private]

Inherited from BaseAdapter: commit_on_alter_table, driver, maxcharlength, support_distributed_transaction, types, uploads_in_blob

Inherited from ConnectionPool: pools

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

represent(self, obj, fieldtype)

source code 
Overrides: BaseAdapter.represent

_insert(self, table, fields)

source code 
Overrides: BaseAdapter._insert

_count(self, query, distinct=1)

source code 
Overrides: BaseAdapter._count

_select(self, query, fields, attributes)

source code 
Overrides: BaseAdapter._select

_delete(self, tablename, query)

source code 
Overrides: BaseAdapter._delete

_update(self, tablename, query, fields)

source code 
Overrides: BaseAdapter._update

commit(self)

source code 
remember: no transactions on many NoSQL
Overrides: BaseAdapter.commit

rollback(self)

source code 
remember: no transactions on many NoSQL
Overrides: BaseAdapter.rollback

close(self)

source code 
remember: no transactions on many NoSQL
Overrides: BaseAdapter.close

OR(self, first, second)

source code 
Overrides: BaseAdapter.OR

AND(self, first, second)

source code 
Overrides: BaseAdapter.AND

AS(self, first, second)

source code 
Overrides: BaseAdapter.AS

ON(self, first, second)

source code 
Overrides: BaseAdapter.ON

STARTSWITH(self, first, second=1)

source code 
Overrides: BaseAdapter.STARTSWITH

ENDSWITH(self, first, second=1)

source code 
Overrides: BaseAdapter.ENDSWITH

ADD(self, first, second)

source code 
Overrides: BaseAdapter.ADD

SUB(self, first, second)

source code 
Overrides: BaseAdapter.SUB

MUL(self, first, second)

source code 
Overrides: BaseAdapter.MUL

DIV(self, first, second)

source code 
Overrides: BaseAdapter.DIV

LOWER(self, first)

source code 
Overrides: BaseAdapter.LOWER

UPPER(self, first)

source code 
Overrides: BaseAdapter.UPPER

EXTRACT(self, first, what)

source code 
Overrides: BaseAdapter.EXTRACT

AGGREGATE(self, first, what)

source code 
Overrides: BaseAdapter.AGGREGATE

LEFT_JOIN(self)

source code 
Overrides: BaseAdapter.LEFT_JOIN

RANDOM(self)

source code 
Overrides: BaseAdapter.RANDOM

SUBSTRING(self, field, parameters)

source code 
Overrides: BaseAdapter.SUBSTRING

PRIMARY_KEY(self, key)

source code 
Overrides: BaseAdapter.PRIMARY_KEY

LIKE(self, first, second)

source code 
Overrides: BaseAdapter.LIKE

drop(self, table, mode)

source code 
Overrides: BaseAdapter.drop

alias(self, table, alias)

source code 
given a table object, makes a new table object with alias name.
Overrides: BaseAdapter.alias
(inherited documentation)

migrate_table(self, *a, **b)

source code 
Overrides: BaseAdapter.migrate_table

distributed_transaction_begin(self, key)

source code 
Overrides: BaseAdapter.distributed_transaction_begin

prepare(self, key)

source code 
Overrides: BaseAdapter.prepare

commit_prepared(self, key)

source code 
Overrides: BaseAdapter.commit_prepared

rollback_prepared(self, key)

source code 
Overrides: BaseAdapter.rollback_prepared

concat_add(self, table)

source code 
Overrides: BaseAdapter.concat_add

constraint_name(self, table, fieldname)

source code 
Overrides: BaseAdapter.constraint_name

create_sequence_and_triggers(self, query, table, **args)

source code 
Overrides: BaseAdapter.create_sequence_and_triggers

log_execute(self, *a, **b)

source code 
Overrides: BaseAdapter.log_execute

execute(self, *a, **b)

source code 
Overrides: BaseAdapter.execute

represent_exceptions(self, obj, fieldtype)

source code 
Overrides: BaseAdapter.represent_exceptions

lastrowid(self, table)

source code 
Overrides: BaseAdapter.lastrowid

integrity_error_class(self)

source code 
Overrides: BaseAdapter.integrity_error_class

rowslice(self, rows, minimum=0, maximum=1)

source code 
by default this function does nothing, overload when db does not do slicing
Overrides: BaseAdapter.rowslice
(inherited documentation)