// NewDefaultEnv creates a default environment for use in an Options. // // To prevent memory leaks, the Env returned should be deallocated with // Close. func NewDefaultEnv() *Env { return &Env{C.rocksdb_create_default_env()} }
// NewDefaultEnv creates a default environment. func NewDefaultEnv() *Env { return NewNativeEnv(C.rocksdb_create_default_env()) }