package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Oct 18, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package persistence provides MySQL-specific implementations of the interfaces
in Ax's top-level "persistence" package.
ExtractDB returns the SQL database within ds.
It panics if ds is not a *DataStore.
ExtractTx returns the SQL transaction within tx.
It panics if tx is not a *Tx.
type DataStore struct {
DB *sql.DB
}
DataStore is a MySQL-backed implementation of Ax's persistence.DataStore
interface.
BeginTx starts a new transaction.
Tx is a MySQL-backed implementation of Ax's persistence.Tx interface.
DataStore returns the DataStore that the transaction operates on.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.