Files
b581002f85 refactor(datastore): flip driver+mock to hanzo-ds/* — kill datastore-go/v2 (#34)
completes the hanzo-ds debrand: driver hanzoai/datastore-go/v2 ->
hanzo-ds/go (dscol->col), mock hanzoai/datastore-go-mock -> hanzo-ds/mock.
sqlbuilder/sqlparser already moved. zero hanzoai/datastore-* imports;
build + store/metadata tests green. (residual /v2 indirect is via the
pre-existing ../cloud replace and clears when cloud migrates.)

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-12 22:52:08 -07:00

19 lines
766 B
Go

// Package datastoremock exposes the datastore mock connection surface behind a
// brand-neutral interface, so o11y test doubles depend on a local Datastore
// contract rather than the mock driver's exported type name.
package datastoremock
import dsmock "github.com/hanzo-ds/mock"
// Conn is the subset of the datastore mock driver used to set query
// expectations in tests. The mock connection satisfies it structurally.
type Conn interface {
ExpectQuery(sql string) *dsmock.ExpectedQuery
ExpectQueryRow(sql string) *dsmock.ExpectedQueryRow
ExpectSelect(sql string) *dsmock.ExpectedSelect
ExpectExec(sql string) *dsmock.ExpectedExec
ExpectPrepareBatch(sql string) *dsmock.ExpectedPrepareBatch
ExpectationsWereMet() error
MatchExpectationsInOrder(bool)
}