MCPcopy Create free account
hub / github.com/dolthub/doltgresql / SetCollation

Method SetCollation

core/rootvalue.go:874–880  ·  view source on GitHub ↗

SetCollation implements the interface doltdb.RootValue.

(ctx context.Context, collation schema.Collation)

Source from the content-addressed store, hash-verified

872
873// SetCollation implements the interface doltdb.RootValue.
874func (root *RootValue) SetCollation(ctx context.Context, collation schema.Collation) (doltdb.RootValue, error) {
875 newStorage, err := root.st.SetCollation(ctx, collation)
876 if err != nil {
877 return nil, err
878 }
879 return root.withStorage(newStorage), nil
880}
881
882// SetFeatureVersion implements the interface doltdb.RootValue.
883func (root *RootValue) SetFeatureVersion(v doltdb.FeatureVersion) (doltdb.RootValue, error) {

Callers

nothing calls this directly

Calls 1

withStorageMethod · 0.95

Tested by

no test coverage detected