func (opts *TransactionOptions) SetLockTimeout(lock_timeout int64) {
	C.rocksdb_transaction_options_set_lock_timeout(opts.c, C.int64_t(lock_timeout))
}
SetLockTimeout positive, specifies the wait timeout in milliseconds when
a transaction attempts to lock a key.
If 0, no waiting is done if a lock cannot instantly be acquired.
If negative, TransactionDBOptions::transaction_lock_timeout will be used
package gorocksdb
import "C"
type TransactionOptions struct {
	c *C.rocksdb_transaction_options_t
}
func NewDefaultTransactionOptions() *TransactionOptions {
	return NewNativeTransactionOptions(C.rocksdb_transaction_options_create())
}
func NewNativeTransactionOptions(c *C.rocksdb_transaction_options_t) *TransactionOptions {
	return &TransactionOptions{c}
}
func (opts *TransactionOptions) SetSetSnapshot(value bool) {
	C.rocksdb_transaction_options_set_set_snapshot(opts.c, boolToChar(value))
}
func (opts *TransactionOptions) SetDeadlockDetect(value bool) {
	C.rocksdb_transaction_options_set_deadlock_detect(opts.c, boolToChar(value))
}