MCPcopy
hub / github.com/openfga/openfga / WithMaxTuplesPerWrite

Function WithMaxTuplesPerWrite

pkg/storage/sqlcommon/sqlcommon.go:110–114  ·  view source on GitHub ↗

WithMaxTuplesPerWrite returns a DatastoreOption that sets the maximum number of tuples per write in the Config.

(maxTuples int)

Source from the content-addressed store, hash-verified

108// WithMaxTuplesPerWrite returns a DatastoreOption that sets
109// the maximum number of tuples per write in the Config.
110func WithMaxTuplesPerWrite(maxTuples int) DatastoreOption {
111 return func(cfg *Config) {
112 cfg.MaxTuplesPerWriteField = maxTuples
113 }
114}
115
116// WithMaxTypesPerAuthorizationModel returns a DatastoreOption that sets
117// the maximum number of types per authorization model in the Config.

Callers 6

TestPostgresDatastoreFunction · 0.92
TestMySQLDatastoreFunction · 0.92
TestSQLiteDatastoreFunction · 0.92
TestReleasesConnectionsFunction · 0.92
datastoreConfigMethod · 0.92
TestNewConfigFunction · 0.70

Calls

no outgoing calls

Tested by 5

TestPostgresDatastoreFunction · 0.74
TestMySQLDatastoreFunction · 0.74
TestSQLiteDatastoreFunction · 0.74
TestReleasesConnectionsFunction · 0.74
TestNewConfigFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…