pgx_utils/sql_entity_graph/pg_extern/entity/
operator.rs

1/*
2Portions Copyright 2019-2021 ZomboDB, LLC.
3Portions Copyright 2021-2022 Technology Concepts & Design, Inc. <support@tcdi.com>
4
5All rights reserved.
6
7Use of this source code is governed by the MIT license that can be found in the LICENSE file.
8*/
9/*!
10
11`#[pg_extern]` related operator entities for Rust to SQL translation
12
13> Like all of the [`sql_entity_graph`][crate::sql_entity_graph] APIs, this is considered **internal**
14to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution.
15
16*/
17use serde::{Deserialize, Serialize};
18
19/// The output of a [`PgOperator`](crate::sql_entity_graph::PgOperator) from `quote::ToTokens::to_tokens`.
20#[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
21pub struct PgOperatorEntity {
22    pub opname: Option<&'static str>,
23    pub commutator: Option<&'static str>,
24    pub negator: Option<&'static str>,
25    pub restrict: Option<&'static str>,
26    pub join: Option<&'static str>,
27    pub hashes: bool,
28    pub merges: bool,
29}