MCPcopy Create free account
hub / github.com/Permify/permify / WriteSchema

Method WriteSchema

internal/storage/storage.go:157–157  ·  view source on GitHub ↗

WriteSchema writes schema to the storage.

(ctx context.Context, definitions []SchemaDefinition)

Source from the content-addressed store, hash-verified

155type SchemaWriter interface {
156 // WriteSchema writes schema to the storage.
157 WriteSchema(ctx context.Context, definitions []SchemaDefinition) (err error)
158}
159
160type NoopSchemaWriter struct{}

Callers 15

RunWithShapeMethod · 0.65
validateFunction · 0.65
gc_test.goFile · 0.65
WriteMethod · 0.65
PartialWriteMethod · 0.65
check_test.goFile · 0.65
expand_test.goFile · 0.65

Implementers 3

NoopSchemaWriterinternal/storage/storage.go
SchemaWriterinternal/storage/postgres/schema_write
SchemaWriterinternal/storage/memory/schema_writer.

Calls

no outgoing calls

Tested by

no test coverage detected