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

Class GoogleDatastoreAdapter

source code

    object --+            
             |            
ConnectionPool --+        
                 |        
       BaseAdapter --+    
                     |    
          NoSQLAdapter --+
                         |
                        GoogleDatastoreAdapter

Instance Methods [hide private]
 
file_exists(self, filename)
to be used ONLY for files that on GAE may not be on filesystem
source code
 
file_open(self, filename, mode='rb', lock=True)
to be used ONLY for files that on GAE may not be on filesystem
source code
 
file_close(self, fileobj, unlock=True)
to be used ONLY for files that on GAE may not be on filesystem
source code
 
__init__(self, db, uri, pool_size=0, folder=1, db_codec='UTF-8', credential_decoder=<function <lambda> at 0xd71398>, driver_args={}, adapter_args={})
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
create_table(self, table, migrate=True, fake_migrate=True, polymodel=1) source code
 
expand(self, expression, field_type=1) source code
 
AND(self, first, second) source code
 
EQ(self, first, second=1) source code
 
NE(self, first, second=1) source code
 
LT(self, first, second=1) source code
 
LE(self, first, second=1) source code
 
GT(self, first, second=1) source code
 
GE(self, first, second=1) source code
 
INVERT(self, first) source code
 
COMMA(self, first, second) source code
 
BELONGS(self, first, second=1) source code
 
CONTAINS(self, first, second) source code
 
NOT(self, first) source code
 
truncate(self, table, mode) source code
 
select_raw(self, query, fields=[], attributes={}) source code
 
select(self, query, fields, attributes)
Always returns a Rows object, even if it may be empty
source code
 
count(self, query, distinct=1) source code
 
delete(self, tablename, query)
This function was changed on 2010-05-04 because according to http://code.google.com/p/googleappengine/issues/detail?id=3119 GAE no longer support deleting more than 1000 records.
source code
 
update(self, tablename, query, update_fields) source code
 
insert(self, table, fields) source code
 
bulk_insert(self, table, items) source code

Inherited from NoSQLAdapter: ADD, AGGREGATE, AS, DIV, ENDSWITH, EXTRACT, LEFT_JOIN, LIKE, LOWER, MUL, ON, OR, PRIMARY_KEY, RANDOM, STARTSWITH, SUB, SUBSTRING, UPPER, alias, close, commit, commit_prepared, concat_add, constraint_name, create_sequence_and_triggers, distributed_transaction_begin, drop, execute, integrity_error_class, lastrowid, log_execute, migrate_table, prepare, represent, represent_exceptions, rollback, rollback_prepared, rowslice

Inherited from NoSQLAdapter (private): _count, _delete, _insert, _select, _update

Inherited from BaseAdapter: ALLOW_NULL, COALESCE_ZERO, JOIN, MOD, NOT_NULL, file_delete, filter_tenant, get_table, integrity_error, parse, select_limitby, sequence_name, tables, trigger_name

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]

Inherited from NoSQLAdapter: to_unicode

Inherited from ConnectionPool: close_all_instances, set_folder

Class Variables [hide private]
  uploads_in_blob = True
  types = {}

Inherited from BaseAdapter: commit_on_alter_table, driver, maxcharlength, support_distributed_transaction

Inherited from ConnectionPool: pools

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

file_exists(self, filename)

source code 
to be used ONLY for files that on GAE may not be on filesystem
Overrides: BaseAdapter.file_exists
(inherited documentation)

file_open(self, filename, mode='rb', lock=True)

source code 
to be used ONLY for files that on GAE may not be on filesystem
Overrides: BaseAdapter.file_open
(inherited documentation)

file_close(self, fileobj, unlock=True)

source code 
to be used ONLY for files that on GAE may not be on filesystem
Overrides: BaseAdapter.file_close
(inherited documentation)

__init__(self, db, uri, pool_size=0, folder=1, db_codec='UTF-8', credential_decoder=<function <lambda> at 0xd71398>, driver_args={}, adapter_args={})
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: BaseAdapter.__init__

create_table(self, table, migrate=True, fake_migrate=True, polymodel=1)

source code 
Overrides: BaseAdapter.create_table

expand(self, expression, field_type=1)

source code 
Overrides: BaseAdapter.expand

AND(self, first, second)

source code 
Overrides: NoSQLAdapter.AND

EQ(self, first, second=1)

source code 
Overrides: BaseAdapter.EQ

NE(self, first, second=1)

source code 
Overrides: BaseAdapter.NE

LT(self, first, second=1)

source code 
Overrides: BaseAdapter.LT

LE(self, first, second=1)

source code 
Overrides: BaseAdapter.LE

GT(self, first, second=1)

source code 
Overrides: BaseAdapter.GT

GE(self, first, second=1)

source code 
Overrides: BaseAdapter.GE

INVERT(self, first)

source code 
Overrides: BaseAdapter.INVERT

COMMA(self, first, second)

source code 
Overrides: BaseAdapter.COMMA

BELONGS(self, first, second=1)

source code 
Overrides: BaseAdapter.BELONGS

CONTAINS(self, first, second)

source code 
Overrides: BaseAdapter.CONTAINS

NOT(self, first)

source code 
Overrides: BaseAdapter.NOT

truncate(self, table, mode)

source code 
Overrides: BaseAdapter.truncate

select(self, query, fields, attributes)

source code 
Always returns a Rows object, even if it may be empty
Overrides: BaseAdapter.select
(inherited documentation)

count(self, query, distinct=1)

source code 
Overrides: BaseAdapter.count

delete(self, tablename, query)

source code 
This function was changed on 2010-05-04 because according to http://code.google.com/p/googleappengine/issues/detail?id=3119 GAE no longer support deleting more than 1000 records.
Overrides: BaseAdapter.delete

update(self, tablename, query, update_fields)

source code 
Overrides: BaseAdapter.update

insert(self, table, fields)

source code 
Overrides: BaseAdapter.insert

bulk_insert(self, table, items)

source code 
Overrides: BaseAdapter.bulk_insert