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

Function convertStoreStorageConfig

backend/api/v1/database_converter.go:857–877  ·  view source on GitHub ↗
(storage *storepb.StorageConfig)

Source from the content-addressed store, hash-verified

855}
856
857func convertStoreStorageConfig(storage *storepb.StorageConfig) *v1pb.StorageConfig {
858 if storage == nil {
859 return nil
860 }
861 return &v1pb.StorageConfig{
862 Fillfactor: storage.Fillfactor,
863 Buffering: storage.Buffering,
864 Tablespace: storage.Tablespace,
865 WorkTablespace: storage.WorkTablespace,
866 SdoLevel: storage.SdoLevel,
867 CommitInterval: storage.CommitInterval,
868 PadIndex: storage.PadIndex,
869 SortInTempdb: storage.SortInTempdb,
870 DropExisting: storage.DropExisting,
871 Online: storage.Online,
872 AllowRowLocks: storage.AllowRowLocks,
873 AllowPageLocks: storage.AllowPageLocks,
874 Maxdop: storage.Maxdop,
875 DataCompression: storage.DataCompression,
876 }
877}
878
879func convertV1StorageConfig(storage *v1pb.StorageConfig) *storepb.StorageConfig {
880 if storage == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected