Branch: refs/heads/master
Home: https://github.com/conformal/btcdb
Commit: 2aca9245145a6c22fb02f6681201105f6eb581e4
https://github.com/conformal/btcdb/commit/2aca9245145a6c22fb02f6681201105f6eb581e4
Author: Dave Collins <[email protected]>
Date: 2014-01-19 (Sun, 19 Jan 2014)
Changed paths:
M common_test.go
M db.go
M db_test.go
M ldb/leveldb.go
M memdb/driver.go
M memdb/memdb_test.go
Log Message:
-----------
Allow the Open/CreateDB funcs to take any params.
The specific parameters required by a backend is better left up to the
backend itself. For example memdb has no need for a database path, while
ldb does. This commit modifies the OpenDB and CreateDB functions to take
a arbitrary arguments which are passed along to the driver. The driver is
expected to verify the correct type and number of arguments and error
accordingly.
The existing backends have been updated accordingly.