Skip to content

Batch-Size as property #202

@flashpixx

Description

@flashpixx

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 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.

Configuration:

  • Go version (go version): 1.22
  • go-exploitdb environment: Version 0.4.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions