Documentation ¶
Index ¶
- func CreateStudy(pool *pgxpool.Pool, name string) string
- func CreateUser(pool *pgxpool.Pool, id string) string
- func Exec(conn *pgxpool.Pool, sql string, arguments ...interface{}) (*pgconn.CommandTag, error)
- func GetBodyAs(r *http.Request, t interface{}) (interface{}, error)
- func GetCol(pool *pgxpool.Pool, table string, col string) []*string
- func GetString(d json.RawMessage, path string) string
- func MakeUserMap(e []*InferenceDataEvent) map[string]map[string]*InferenceDataEvent
- func MustExec(t *testing.T, conn *pgxpool.Pool, sql string, arguments ...interface{})
- func RowStrings(rows pgx.Rows) []*string
- func Sliceit[T any](c <-chan T) []T
- func TestPool() *pgxpool.Pool
- func TestServer(handler func(http.ResponseWriter, *http.Request)) (*httptest.Server, *sling.Sling)
- func TestServerMux() (*httptest.Server, *http.ServeMux)
- type TestTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeUserMap ¶
func RowStrings ¶
func RowStrings(rows pgx.Rows) []*string
func TestServer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.