// SetErrorIfExists, if passed true, will cause the opening of a database that // already exists to throw an error. func (o *Options) SetErrorIfExists(error_if_exists bool) { eie := boolToUchar(error_if_exists) C.rocksdb_options_set_error_if_exists(o.Opt, eie) }
// SetErrorIfExists specifies whether an error should be raised // if the database already exists. // Default: false func (opts *Options) SetErrorIfExists(value bool) { C.rocksdb_options_set_error_if_exists(opts.c, boolToChar(value)) }