Documentation for python-stdnet's DEVELOPMENT version. Get the release docs here.
get a BackendDataServer.
Generic interface for a backend databases.
It should not be initialised directly, the getdb() function should be used instead.
Parameters: |
|
---|
ATTRIBUTES
name of database
The connection string for this backend. By calling getdb() with this value, one obtain a BackendDataServer connected to the same database as this instance.
The client handler for the backend database.
The BackendQuery class for this backend.
The default model Manager for this backend. If not provided, the stdnet.odm.Manager is used. Default None.
Calculate the key to access model data.
Parameters: |
|
---|---|
Return type: | a native string |
Disconnect the connection.
Generator of stdnet.odm.StdModel instances with data from database.
Parameters: |
|
---|
Create a backend stdnet.odm.Structure handler.
Parameters: |
|
---|
Check if the backend handler is asynchronous.
Invoked when registering a model with a backend. This is a chance to perform model specific operation in the server. For example, mongo db ensure indices are created.
Remove temporary keys for a model
Ping the server
Return a list of database keys used by instance obj
Return a proper python value for the auto id.
Callback during initialization. Implementation should override this function for customizing their handling of connection parameters. It must return a instance of the backend handler.
Execute a stdnet.odm.Session in the backend server.
Return a list of database keys used by model model
Flush the database or drop all instances of a model/collection
Interface for stdnet.odm.Structure backends.
The stdnet.odm.Structure which this backend represents.
The client of the BackendDataServer