|
__init__(self,
db,
uri=' mongodb://127.0.0.1:5984/db ' ,
pool_size=0,
folder=None,
db_codec=' UTF-8 ' ,
credential_decoder=<function IDENTITY at 0x334cd70>,
driver_args={ } ,
adapter_args={ } ,
do_connect=True,
after_connection=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select(self,
query,
fields,
attributes,
count=False,
snapshot=False)
Always returns a Rows object, possibly empty. |
source code
|
|
|
insert(self,
table,
fields,
safe=None)
Safe determines whether a asynchronious request is done or a
synchronious action is done For safety, we use by default synchronous
requests |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from NoSQLAdapter :
AGGREGATE ,
EXTRACT ,
LEFT_JOIN ,
LENGTH ,
LOWER ,
PRIMARY_KEY ,
RANDOM ,
SUBSTRING ,
UPPER ,
alias ,
close_connection ,
commit ,
commit_prepared ,
concat_add ,
constraint_name ,
create_sequence_and_triggers ,
distributed_transaction_begin ,
execute ,
id_query ,
lastrowid ,
log_execute ,
migrate_table ,
prepare ,
represent_exceptions ,
rollback ,
rollback_prepared ,
rowslice
Inherited from BaseAdapter :
ALLOW_NULL ,
CASE ,
CAST ,
COALESCE ,
COALESCE_ZERO ,
CONCAT ,
COUNT ,
EPOCH ,
JOIN ,
NOT_NULL ,
RAW ,
REGEXP ,
REPLACE ,
adapt ,
build_parsemap ,
common_filter ,
connector ,
expand_all ,
file_close ,
file_delete ,
file_exists ,
file_open ,
find_driver ,
get_table ,
isOperationalError ,
isProgrammingError ,
is_numerical_type ,
log ,
parse ,
parse_blob ,
parse_boolean ,
parse_date ,
parse_datetime ,
parse_decimal ,
parse_double ,
parse_integer ,
parse_json ,
parse_list_integers ,
parse_list_references ,
parse_list_strings ,
parse_time ,
parse_value ,
save_dbt ,
select_limitby ,
sequence_name ,
smart_adapt ,
sqlsafe_field ,
sqlsafe_table ,
table_alias ,
tables ,
trigger_name ,
varquote
Inherited from ConnectionPool :
after_connection ,
after_connection_hook ,
close ,
find_or_make_work_folder ,
reconnect
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|