Skip to content

Commit e243a1d

Browse files
authored
Merge pull request #3 from fraktalio/renovate/pgrx-0.x
Update Rust crate pgrx to v0.12.6
2 parents eab68c5 + 7f1ead6 commit e243a1d

File tree

7 files changed

+17
-125
lines changed

7 files changed

+17
-125
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

Cargo.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ version = "1.0.0"
44
edition = "2021"
55

66
[lib]
7-
crate-type = ["cdylib"]
7+
crate-type = ["cdylib", "lib"]
88

99
[features]
1010
default = ["pg15"]
11-
pg11 = ["pgrx/pg11", "pgrx-tests/pg11" ]
1211
pg12 = ["pgrx/pg12", "pgrx-tests/pg12" ]
1312
pg13 = ["pgrx/pg13", "pgrx-tests/pg13" ]
1413
pg14 = ["pgrx/pg14", "pgrx-tests/pg14" ]
@@ -17,15 +16,15 @@ pg16 = ["pgrx/pg16", "pgrx-tests/pg16" ]
1716
pg_test = []
1817

1918
[dependencies]
20-
pgrx = "=0.11.4"
21-
serde = { version = "1.0.203", features = ["derive"] }
19+
pgrx = "0.12.6"
20+
serde = { version = "1.0.210", features = ["derive"] }
2221
fmodel-rust = "0.7.0"
23-
serde_json = "1.0.117"
24-
uuid = { version = "1.8.0", features = ["serde", "v4"] }
25-
thiserror = "1.0.61"
22+
serde_json = "1.0.131"
23+
uuid = { version = "1.11.0", features = ["serde", "v4"] }
24+
thiserror = "1.0.64"
2625

2726
[dev-dependencies]
28-
pgrx-tests = "=0.11.4"
27+
pgrx-tests = "0.12.6"
2928

3029
[profile.dev]
3130
panic = "unwind"
@@ -35,3 +34,7 @@ panic = "unwind"
3534
opt-level = 3
3635
lto = "fat"
3736
codegen-units = 1
37+
38+
[[bin]]
39+
name = "pgrx_embed_fmodel_rust_postgres"
40+
path = "./src/bin/pgrx_embed.rs"

Makefile

Lines changed: 0 additions & 74 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ This project is using:
4444
## Requirements
4545
- [Rust](https://www.rust-lang.org/tools/install)
4646
- [PGRX subcommand](https://github.com/pgcentralfoundation/pgrx?tab=readme-ov-file#getting-started): `cargo install --locked cargo-pgrx`
47+
- Then you can run `cargo pgrx upgrade` in your extension's crate to update its dependencies.
48+
- (Mac os) `brew install git icu4c pkg-config`
49+
- (Mac os) `export PKG_CONFIG_PATH=/opt/homebrew/opt/icu4c/lib/pkgconfig`
4750
- Run `cargo pgrx init` once, to properly configure the pgrx development environment. It downloads the latest releases of supported Postgres versions, configures them for debugging, compiles them with assertions, and installs them to `"${PGRX_HOME}"`. These include all contrib extensions and tools included with Postgres. Other cargo pgrx commands such as `run` and `test` will manage and use these installations on your behalf.
4851

4952
> No manual Postgres database installation is required.

src/bin/pgrx_embed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::pgrx::pgrx_embed!();

src/domain/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::framework::domain::api::Identifier;
2+
use pgrx::FromDatum;
23
use pgrx::{PostgresEnum, PostgresType};
34
use serde::{Deserialize, Serialize};
45
use std::fmt;

src/framework/infrastructure/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use pgrx::datum::TryFromDatumError;
12
use pgrx::prelude::*;
2-
use pgrx::TryFromDatumError;
33
use serde::{Deserialize, Serialize};
44
use std::error::Error;
55
use std::fmt;

0 commit comments

Comments
 (0)