Documentation ¶
Index ¶
Constants ¶
View Source
const ISO8601 = "2006-01-02T15:04:05-07:00"
Variables ¶
View Source
var BasicConfig = eventstore.Config{ VATRates: []eventio.VATRate{ { Code: "Standard", Rate: 0.2, ValidFrom: "epoch", }, }, CurrencyRates: []eventio.CurrencyRate{ { Code: "GBP", Rate: 1, ValidFrom: "epoch", }, }, PricingPlans: []eventio.PricingPlan{}, }
Functions ¶
Types ¶
type TempDB ¶
type TempDB struct { MasterConnectionString string TempConnectionString string Schema eventio.EventStore Conn *sql.DB }
func Open ¶
func Open(cfg eventstore.Config) (*TempDB, error)
Opens creates a new database named test_<uuid> and runs Init() with the given config
func (*TempDB) Get ¶
Perform a query that returns a single row single column and return whatever it is This is useful for testing
Click to show internal directories.
Click to hide internal directories.