Documentation
¶
Index ¶
- func CreateTestFeed(atx tldb.Adapter, url string) dmfr.Feed
- func MustFind(atx tldb.Adapter, ent interface{})
- func MustGet(atx tldb.Adapter, ent interface{}, qstr string, qargs ...interface{})
- func MustInsert(atx tldb.Adapter, ent interface{}) int
- func MustOpenWriter(dburl string, create bool) *tldb.Writer
- func MustSelect(atx tldb.Adapter, ent interface{}, qstr string, qargs ...interface{})
- func MustUpdate(atx tldb.Adapter, ent interface{}, columns ...string)
- func ShouldFind(t *testing.T, atx tldb.Adapter, ent interface{})
- func ShouldGet(t *testing.T, atx tldb.Adapter, ent interface{}, qstr string, ...)
- func ShouldInsert(t *testing.T, atx tldb.Adapter, ent interface{}) int
- func ShouldSelect(t *testing.T, atx tldb.Adapter, ent interface{}, qstr string, ...)
- func ShouldUpdate(t *testing.T, atx tldb.Adapter, ent interface{}, columns ...string)
- func TempPostgres(dburl string, cb func(tldb.Adapter) error) error
- func TempSqlite(cb func(tldb.Adapter) error) error
- func TempSqliteAdapter() tldb.Adapter
- type AdapterIgnoreTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestFeed ¶ added in v0.8.0
CreateTestFeed returns a simple feed inserted into a database.
func MustInsert ¶
MustInsert panics on failure
func MustSelect ¶
MustSelect panics on failure
func MustUpdate ¶
MustUpdate panics on failure
func ShouldFind ¶
ShouldFind sends a test error on failure
func ShouldInsert ¶
ShouldInsert sends a test error on failure
func ShouldSelect ¶
func ShouldSelect(t *testing.T, atx tldb.Adapter, ent interface{}, qstr string, qargs ...interface{})
ShouldSelect sends a test error on failure
func ShouldUpdate ¶
ShouldUpdate sends a test error on failure
func TempPostgres ¶ added in v0.18.0
func TempSqlite ¶ added in v0.11.0
TempSqlite creates a temporary in-memory database and runs the callback inside a tx.
func TempSqliteAdapter ¶ added in v0.13.0
Types ¶
Click to show internal directories.
Click to hide internal directories.