Sida Chen
5a94499fdb
update according to comments
5 years ago
Sida Chen
79af05e67d
pgsql: Fix postgres queries for feature_type
5 years ago
Ales Raszka
90f5592095
Feature: replace arrays with slices
...
The current code is much cleaner because it doesn't use indexes + it
should be more memory efficient.
5 years ago
Sida Chen
0c1b80b2ed
pgsql: Implement database queries for detector relationship
...
* Refactor layer and ancestry
* Add tests
* Fix bugs introduced when the queries were moved
6 years ago
Sida Chen
9c49d9dc55
pgsql: Move queries to corresponding files
...
Aggregate queries in their corresponding files instead of having the
single file for every queries because the database is more complicated.
6 years ago
Sida Chen
a5c6400065
database: postgres implementation with tests.
7 years ago
Jimmy Zelinskie
78cef02fda
pkg: cerrors -> commonerr
7 years ago
Jimmy Zelinskie
627b98ef31
db/pgsql/feature: fix SQL error reporting
7 years ago
Jimmy Zelinskie
8d29bf860d
versionfmt: convert to using constant over literal
7 years ago
Jimmy Zelinskie
033709eaea
add registerable version formats
...
Since we only ever used dpkg, this change shims everything into using
dpkg.
7 years ago
Quentin Machu
ec0aad9b7a
pgsql: Use booleans instead of varchar to return creation status
8 years ago
Quentin Machu
9b191fb598
database: Find the FeatureVersion we try to insert before doing any lock
...
This commit is issued in order to limit the bottleneck that the
exclusive database lock on Vulnerability_Affects_FeautreVersion
introduces, when we inserting FeatureVersions. This slowdowns a bit
the FeatureVersion insertion on a mostly empty database but should
increase a lot the throughput and parallelism on a populated database.
8 years ago
Quentin Machu
84319507df
database: use constants to store queries
8 years ago
Quentin Machu
8f9779e232
database: cache feature version upon lookup
8 years ago
Quentin Machu
35df7ca0eb
database: fix feature version cache
8 years ago
Quentin Machu
baed60e19b
prometheus: add initial Prometheus support
8 years ago
Quentin Machu
ad0531acc7
notifier/database: refactor notification system and add initial Prometheus support
8 years ago
Quentin Machu
248fc7df72
database: fix cache collision (feature & feature versions)
8 years ago
Quentin Machu
82175dcfe9
*: add missing copyright headers
8 years ago
Quentin Machu
bd17dfb5e1
database: ensure that concurrent vulnerability/feature versions insertions work fine
8 years ago
Quentin Machu
74fc5b3e66
database: add missing transaction commits and close opened statement before inserting feature versions.
8 years ago
Quentin Machu
77387af2ac
updater: port updater and its fetchers
8 years ago
Quentin Machu
7c70fc1c20
database: add initial vulnerability support
8 years ago
Quentin Machu
6a9cf21fd4
database: log and mask SQL errors
8 years ago
Quentin Machu
970756cd5a
database: do insert/find layers (with their features and vulnerabilities)
8 years ago
Quentin Machu
2c150b015e
*: refactor & do initial work towards PostgreSQL implementation
8 years ago