Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a pool of zero or more underlying connections to the photon database.
func (*DB) Execute ¶
Execute and executes a function. Any error that is returned from the function is returned from the Execute() method.
func (*DB) ExecuteTransaction ¶
ExecuteTransaction executes a function within the context of a read-write managed transaction. If no error is returned from the function then the transaction is committed. If an error is returned then the entire transaction is rolled back. Any error that is returned from the function or returned from the commit is returned from the ExecuteTransaction() method.
Click to show internal directories.
Click to hide internal directories.