MCPcopy
hub / github.com/ory/hydra / NewRegistryMemory

Function NewRegistryMemory

internal/testhelpers/driver.go:54–56  ·  view source on GitHub ↗
(t testing.TB, opts ...driver.OptionsModifier)

Source from the content-addressed store, hash-verified

52}
53
54func NewRegistryMemory(t testing.TB, opts ...driver.OptionsModifier) *driver.RegistrySQL {
55 return NewRegistrySQLFromURL(t, dbal.NewSQLiteTestDatabase(t), true, true, opts...)
56}
57
58func NewRegistrySQLFromURL(t testing.TB, dsn string, migrate, initNetwork bool, opts ...driver.OptionsModifier) *driver.RegistrySQL {
59 configOpts := append(ConfigDefaults, configx.WithValue(config.KeyDSN, dsn))

Calls 1

NewRegistrySQLFromURLFunction · 0.85