github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/core/storage/dbconfig/store_config.go (about)

     1  /*
     2  Package dbconfig is a micropackage that contains storage DB configuration options.
     3  */
     4  package dbconfig
     5  
     6  type (
     7  	// DBConfiguration describes configuration for DB. Supported types:
     8  	// [LevelDB], [BoltDB] or [InMemoryDB] (not recommended for production usage).
     9  	DBConfiguration struct {
    10  		Type           string         `yaml:"Type"`
    11  		LevelDBOptions LevelDBOptions `yaml:"LevelDBOptions"`
    12  		BoltDBOptions  BoltDBOptions  `yaml:"BoltDBOptions"`
    13  	}
    14  	// LevelDBOptions configuration for LevelDB.
    15  	LevelDBOptions struct {
    16  		DataDirectoryPath string `yaml:"DataDirectoryPath"`
    17  		ReadOnly          bool   `yaml:"ReadOnly"`
    18  	}
    19  	// BoltDBOptions configuration for BoltDB.
    20  	BoltDBOptions struct {
    21  		FilePath string `yaml:"FilePath"`
    22  		ReadOnly bool   `yaml:"ReadOnly"`
    23  	}
    24  )