Skip to content

Commit

Permalink
Correct documentation about reload_when
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthad committed Aug 19, 2024
1 parent f31e2df commit 1d25a4a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/enrichment_tables/pgtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,12 @@ pub struct PgtableConfig {
table: String,
/// Columns to project from table
columns: Vec<String>,
/// Reload the table when this query returns one or more rows.
/// The result set must contain zero rows or one row, and it must
/// contain a single boolean column. The name of the column does
/// not matter. If the result contains a single row with a value of
/// true in its column, a reload is performed.
/// Reload the table when this query returns a newer timestamp
/// than the last one that was seen. The result set must contain
/// zero rows or one row, and it must contain a single timestamptz

Check failure on line 69 in src/enrichment_tables/pgtable.rs

View workflow job for this annotation

GitHub Actions / Check Spelling

`timestamptz` is not a recognized word. (unrecognized-spelling)
/// column. The name of the column does not matter.
///
/// Example: SELECT max(w.updated) FROM widgets w;
///
/// The query must reference a $1 parameter. This parameter has
/// type `timestamp with time zone`, and it is the last time that
/// a reload was performed.
reload_when: Option<String>,
/// TLS client certificate
#[configurable(derived)]
Expand Down

0 comments on commit 1d25a4a

Please sign in to comment.