pgx_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::pgx_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*/
17
18/// The output of a [`PgOperator`](crate::PgOperator) from `quote::ToTokens::to_tokens`.
19#[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)]
20pub struct PgOperatorEntity {
21 pub opname: Option<&'static str>,
22 pub commutator: Option<&'static str>,
23 pub negator: Option<&'static str>,
24 pub restrict: Option<&'static str>,
25 pub join: Option<&'static str>,
26 pub hashes: bool,
27 pub merges: bool,
28}