Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 91 additions & 109 deletions libs/@local/graph/postgres-store/src/store/postgres/query/compile.rs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::store::postgres::query::{Expression, Transpile};
/// A [`Filter`], which can be transpiled.
///
/// [`Filter`]: hash_graph_store::filter::Filter
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq)]
pub enum Condition {
All(Vec<Self>),
Any(Vec<Self>),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use hash_graph_store::filter::PathToken;
use super::ColumnReference;
use crate::store::postgres::query::{SelectStatement, Table, Transpile, WindowStatement};

#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq)]
pub enum Function {
Min(Box<Expression>),
Max(Box<Expression>),
Expand Down Expand Up @@ -155,7 +155,7 @@ impl Transpile for PostgresType {
}

/// A compiled expression in Postgres.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq)]
pub enum Expression {
ColumnReference(ColumnReference<'static>),
/// A parameter are transpiled as a placeholder, e.g. `$1`, in order to prevent SQL injection.
Expand Down
Loading
Loading