Skip to content

Commit

Permalink
Edit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cafca committed Jun 27, 2022
1 parent e7fd225 commit 5369d26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Configurable node server implementation for the [`p2panda`] network running as a

- Awaits signed operations from clients via GraphQL.
- Verifies the consistency, format and signature of operations and rejects invalid ones.
- Stores operations of the network in a SQL database of your choice (SQLite, PostgreSQL).
- Stores operations of the network in an SQL database of your choice (SQLite, PostgreSQL).
- Materializes views on top of the known data.
- Answers filterable and paginated data queries via GraphQL.
- Discovers other nodes in local network and internet.
Expand Down
2 changes: 1 addition & 1 deletion aquadoggo/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct Configuration {
/// Path to data directory.
pub base_path: Option<PathBuf>,

/// Database url (sqlite or postgres).
/// Database url (SQLite or PostgreSQL).
pub database_url: Option<String>,

/// Maximum number of database connections in pool.
Expand Down
3 changes: 2 additions & 1 deletion aquadoggo/src/db/stores/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ impl SqlStorage {
tasks
WHERE
name = $1
-- Use `IS` because these columns can contain `null` values.
-- Use `COALESCE` to compare possible null values in a way
-- that is compatible between SQLite and PostgreSQL.
AND COALESCE(document_id, '0') = COALESCE($2, '0')
AND COALESCE(document_view_id, '0') = COALESCE($3, '0')
",
Expand Down

0 comments on commit 5369d26

Please sign in to comment.