security policy
Methods
|
|
|
|
__init__
|
__init__ (
self,
name,
password,
connection,
queries=0,
)
create a policy (name, password, connection)
name is the name of the policy
password is the access policy (None for no password)
connection is the database connection.
set queries to allow general accesses (unrestricted)
|
|
__setitem__
|
__setitem__ (
self,
name,
value,
)
|
|
action
|
action (
self,
certificate,
datastring,
socket,
)
perform a database/server action after checking certificate
Exceptions
|
|
CHECKPOINT
RESTART
SHUTDOWN
ServerError
|
|
|
certify
|
certify (
self,
datastring,
certificate,
password,
)
|
|
execute
|
execute (
self,
cursor,
statement,
params=None,
)
execute a statement in a cursor
|
|
execute_any_statement
|
execute_any_statement (
self,
statement,
params=None,
)
execute any statement.
|
|
execute_named
|
execute_named (
self,
name,
params=None,
)
execute a named (prepared) sql statement
|
|
policy_CHECKPOINT
|
policy_CHECKPOINT ( self, socket )
|
|
policy_EXECUTE_PREPARED
|
policy_EXECUTE_PREPARED (
self,
name,
dyn,
socket,
)
|
|
policy_EXECUTE_STATEMENT
|
policy_EXECUTE_STATEMENT (
self,
stat,
dyn,
socket,
)
|
|
policy_RESTART
|
policy_RESTART ( self, socket )
|
|
policy_SHUTDOWN
|
policy_SHUTDOWN ( self, socket )
|
|
reply_exception
|
reply_exception (
self,
exc,
info,
socket,
)
|
|
reply_success
|
reply_success (
self,
data,
socket,
)
|
|