示例#1
0
文件: options.go 项目: C0rWin/fabric
// SetEnv sets the specified object to interact with the environment,
// e.g. to read/write files, schedule background work, etc.
// Default: DefaultEnv
func (opts *Options) SetEnv(value *Env) {
	opts.env = value

	C.rocksdb_options_set_env(opts.c, value.c)
}
示例#2
0
文件: options.go 项目: zackb/rocksdb
// SetEnv sets the Env object for the new database handle.
func (o *Options) SetEnv(env *Env) {
	C.rocksdb_options_set_env(o.Opt, env.Env)
}
示例#3
0
// Use the specified object to interact with the environment,
// e.g. to read/write files, schedule background work, etc.
// Default: DefaultEnv
func (self *Options) SetEnv(value *Env) {
	self.env = value

	C.rocksdb_options_set_env(self.c, value.c)
}