Skip to content
Draft
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
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ jobs:
- name: Print sccache stats (before)
run: sccache --show-stats

- name: Install rustfmt
run: rustup component add rustfmt

- name: Install clippy
run: rustup component add clippy

- name: Run rustfmt
run: cargo fmt --all -- --check

Expand Down Expand Up @@ -374,6 +380,9 @@ jobs:
- name: Print sccache stats (before)
run: sccache --show-stats

- name: Install clippy
run: rustup component add clippy

- name: Install cargo-pgrx
run: cargo install --path cargo-pgrx/ --debug --force

Expand Down
8 changes: 5 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pgrx-sql-entity-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#LICENSE All rights reserved.
#LICENSE
#LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.

[package]
name = "pgrx-sql-entity-graph"
version = "0.16.0"
Expand Down Expand Up @@ -35,6 +35,7 @@ thiserror.workspace = true
convert_case = "0.8.0"
petgraph = "0.8.1"
unescape = "0.1.0" # for escaped-character-handling
uuid = { version = "1.18.0", features = ["v4"] } # PgLwLock and shmem

# colorized sql output
owo-colors = { optional = true, workspace = true }
Expand Down
6 changes: 5 additions & 1 deletion pgrx-sql-entity-graph/src/pg_extern/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ impl PgExtern {
.collect::<Vec<_>>();
let hrtb = if lifetimes.is_empty() { None } else { Some(quote! { for<#(#lifetimes),*> }) };

let sql_graph_entity_fn_name = format_ident!("__pgrx_internals_fn_{}", ident);
let uuid = uuid::Uuid::new_v4();
let sql_graph_entity_fn_name = Ident::new(
&format!("__pgrx_internals_fn_{}_{}", ident, uuid.as_simple()),
Span::call_site(),
);
quote_spanned! { self.func.sig.span() =>
#[unsafe(no_mangle)]
#[doc(hidden)]
Expand Down
1 change: 1 addition & 0 deletions pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pgrx-sql-entity-graph.workspace = true
thiserror.workspace = true # error handling and logging

# used to internally impl things
once_cell = "1.21.3" # polyfill until std::lazy::OnceCell stabilizes
uuid = { version = "1.16.0", features = ["v4"] } # PgLwLock and shmem
enum-map = "2.7.3"

Expand Down
Loading