Skip to content

Commit 5273edc

Browse files
Merge pull request #55 from rustprooflabs/switch-from-functions-to-views
Switch from functions to views
2 parents afcbeae + 8c90430 commit 5273edc

22 files changed

+139
-541
lines changed

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
[package]
22
name = "pgdd"
3-
version = "0.5.2"
4-
edition = "2018"
3+
version = "0.6.0-dev.0"
4+
edition = "2021"
55
description = "In-database (PostgreSQL) data dictionary providing database introspection via standard SQL query syntax."
66

77
[lib]
8-
crate-type = ["cdylib"]
8+
crate-type = ["cdylib", "lib"]
99

1010
[features]
11-
default = ["pg16"]
12-
pg12 = ["pgrx/pg12"]
11+
default = ["pg17"]
1312
pg13 = ["pgrx/pg13"]
1413
pg14 = ["pgrx/pg14"]
1514
pg15 = ["pgrx/pg15"]
1615
pg16 = ["pgrx/pg16"]
16+
pg17 = ["pgrx/pg17"]
1717
pg_test = []
1818

1919
[dependencies]
20-
pgrx = "=0.10.2"
21-
pgrx-macros = "=0.10.2"
20+
pgrx = "0.14.1"
21+
pgrx-macros = "=0.14.1"
2222

2323

2424
[dev-dependencies]
25-
pgrx-tests = "=0.10.2"
25+
pgrx-tests = "0.14.1"
2626

2727

2828
[profile.dev]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 - 2023 Ryan Lambert
3+
Copyright (c) 2018 - 2025 Ryan Lambert
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

build/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Borrowed heavily from https://github.com/zombodb/zombodb/blob/master/build/build.sh
22
#
3-
# Copyright 2018-2023 RustProof Labs
3+
# Copyright 2018-2024 RustProof Labs
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -21,10 +21,10 @@ BASE=$(dirname `pwd`)
2121
VERSION=$(cat $BASE/pgdd.control | grep default_version | cut -f2 -d\')
2222
LOGDIR=${BASE}/target/logs
2323
ARTIFACTDIR=${BASE}/target/artifacts
24-
PGRXVERSION=0.10.2
24+
PGRXVERSION=0.14.1
2525

26-
PG_VERS=("pg12" "pg13" "pg14" "pg15" "pg16")
27-
#PG_VERS=("pg16")
26+
#PG_VERS=("pg13" "pg14" "pg15" "pg16" "pg17")
27+
PG_VERS=("pg17")
2828

2929
echo $BASE
3030
echo $VERSION
@@ -36,7 +36,7 @@ mkdir -p ${LOGDIR}
3636
mkdir -p ${ARTIFACTDIR}
3737

3838

39-
for image in `ls docker/ ` ; do
39+
for image in `ls docker/ | grep jammy ` ; do
4040

4141
OS_DIST=$(echo ${image}|cut -f2 -d-)
4242
OS_VER=$(echo ${image}|cut -f3 -d-)

build/docker/pgdd-ubuntu-jammy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ RUN apt-get install -y --fix-missing \
2727
libldap-dev libkrb5-dev gettext tcl-tclreadline tcl-dev libperl-dev \
2828
libpython3-dev libprotobuf-c-dev libprotobuf-dev gcc \
2929
ruby ruby-dev rubygems \
30-
postgresql-12 postgresql-server-dev-12 \
3130
postgresql-13 postgresql-server-dev-13 \
3231
postgresql-14 postgresql-server-dev-14 \
3332
postgresql-15 postgresql-server-dev-15 \
3433
postgresql-16 postgresql-server-dev-16 \
34+
postgresql-17 postgresql-server-dev-17 \
3535
&& apt autoremove -y
3636

3737

build/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Borrowed heavily from https://github.com/zombodb/zombodb/blob/master/build/package.sh
22
#
3-
# Copyright 2021-2023 RustProof Labs
3+
# Copyright 2021-2024 RustProof Labs
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

build/pgdd-binaries.tar.gz

195 KB
Binary file not shown.

docs/src/create-installer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ with all versions and uncommenting the line with a specific Postgres version.
6868
The two lines in the script are shown below.
6969

7070
```bash
71-
PG_VERS=("pg12" "pg13" "pg14" "pg15" "pg16")
71+
PG_VERS=("pg13" "pg14" "pg15" "pg16" "pg17")
7272
#PG_VERS=("pg16")
7373
```
7474

pgdd.control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
comment = 'An in-database data dictionary providing database introspection via standard SQL query syntax. Developed using pgx (https://github.com/zombodb/pgx).'
2-
default_version = '0.5.2'
1+
comment = 'An in-database data dictionary providing database introspection via standard SQL query syntax. Developed using pgx (https://github.com/pgcentralfoundation/pgrx).'
2+
default_version = '0.6.0-dev.0'
33
module_pathname = '$libdir/pgdd'
44
relocatable = false
55
schema = dd

src/bin/pgrx_embed_pgdd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Required for pgrx v0.12.0.alpha.1
2+
::pgrx::pgrx_embed!();

0 commit comments

Comments
 (0)