Skip to content

Conversation

@gcmurphy
Copy link
Contributor

@gcmurphy gcmurphy commented Feb 5, 2014

This allows any callers to be able to check if the database is empty and been initialized correctly.
Presently the only way to do this is by relying on the lastUpdate and compare date returned to time(0) which is disconnected from the actual database state.

Whilst this approach works I'm not sure it is 'the best' way to achieve this. For example you could do something similar to this that doesn't require the client to call this method explicitly. Maybe you could throw an exception if the client attempts to perform a scan when the database has no entries ?

@abn abn added the enhancement label Feb 5, 2014
@abn abn self-assigned this Feb 5, 2014
Currently there is no way for a client to determine the number of
records in the victims database. One thing that this is useful for
is determining if a scan is worthwhile or if an update should be issued.
The only other workaround is to check the lastUpdate vs time(0) but this is
not derived from the actual database state.
@abn abn merged commit e073f1e into victims:master Feb 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants