pgrx_sql_entity_graph/pg_extern/entity/operator.rs
1//LICENSE Portions Copyright 2019-2021 ZomboDB, LLC.
2//LICENSE
3//LICENSE Portions Copyright 2021-2023 Technology Concepts & Design, Inc.
4//LICENSE
5//LICENSE Portions Copyright 2023-2023 PgCentral Foundation, Inc. <contact@pgcentral.org>
6//LICENSE
7//LICENSE All rights reserved.
8//LICENSE
9//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
10/*!
11
12`#[pg_extern]` related operator entities for Rust to SQL translation
13
14> Like all of the [`sql_entity_graph`][crate] APIs, this is considered **internal**
15> to the `pgrx` framework and very subject to change between versions. While you may use this, please do it with caution.
16
17*/
18
19/// The output of a [`PgOperator`](crate::PgOperator) from `quote::ToTokens::to_tokens`.
20#[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)]
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}