Integrate the Fetcher and Search option into my program by using the SQLite database. I would like to use go-exploitdb as library in an own program with SQLite database for offline usage
What did you expect to happen?
I get an error batch-size option is not set properly
Steps to reproduce the behaviour
See the line the batch-size is set by an environment variable / argument flag and not by a property of the RDBDriver struct.
Solution Suggestion
Add to the Option struct a property batchSize: uint and use it instead of the viper.GetInt("batch-size") call and it would be nice to provide a default value.
What did you do?
Integrate the Fetcher and Search option into my program by using the SQLite database. I would like to use
go-exploitdb
as library in an own program with SQLite database for offline usageWhat did you expect to happen?
I get an error
batch-size option is not set properly
Steps to reproduce the behaviour
See the line the batch-size is set by an environment variable / argument flag and not by a property of the
RDBDriver
struct.Solution Suggestion
Add to the Option struct a property
batchSize: uint
and use it instead of theviper.GetInt("batch-size")
call and it would be nice to provide a default value.Configuration:
go version
): 1.22