MCPcopy Create free account
hub / github.com/bytebase/bytebase / convertV1StorageConfig

Function convertV1StorageConfig

backend/api/v1/database_converter.go:879–899  ·  view source on GitHub ↗
(storage *v1pb.StorageConfig)

Source from the content-addressed store, hash-verified

877}
878
879func convertV1StorageConfig(storage *v1pb.StorageConfig) *storepb.StorageConfig {
880 if storage == nil {
881 return nil
882 }
883 return &storepb.StorageConfig{
884 Fillfactor: storage.Fillfactor,
885 Buffering: storage.Buffering,
886 Tablespace: storage.Tablespace,
887 WorkTablespace: storage.WorkTablespace,
888 SdoLevel: storage.SdoLevel,
889 CommitInterval: storage.CommitInterval,
890 PadIndex: storage.PadIndex,
891 SortInTempdb: storage.SortInTempdb,
892 DropExisting: storage.DropExisting,
893 Online: storage.Online,
894 AllowRowLocks: storage.AllowRowLocks,
895 AllowPageLocks: storage.AllowPageLocks,
896 Maxdop: storage.Maxdop,
897 DataCompression: storage.DataCompression,
898 }
899}
900
901func convertStoreDimensionalConfig(dimensional *storepb.DimensionalConfig) *v1pb.DimensionalConfig {
902 if dimensional == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected