Skip to content

Commit c5384a2

Browse files
committed
chore: sync all modules from constructive-db
Updates all pgpm-modules packages to match the latest versions from constructive-db. Key changes include: metaschema-modules: - Added 'fields' jsonb[] column to secure_table_provision - Changed grant_privileges type from jsonb to jsonb[] - Changed default PK generation from uuid_generate_v4() to uuidv7() - Added blueprint/blueprint_template tables and procedures - Removed table_module and uuid_module (no longer used) - Added uuid-ossp to control file requires metaschema-schema: - Added embedding_chunks table - Various table definition updates (uuidv7, etc.) All other modules updated with minor version bumps, test files, and .npmignore additions.
1 parent a1dac72 commit c5384a2

144 files changed

Lines changed: 4181 additions & 1795 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/base32/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
EXTENSION = pgpm-base32
2-
DATA = sql/pgpm-base32--0.15.3.sql
2+
DATA = sql/pgpm-base32--0.15.5.sql
33

44
PG_CONFIG = pg_config
55
PGXS := $(shell $(PG_CONFIG) --pgxs)

packages/base32/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgpm/base32",
3-
"version": "0.19.0",
3+
"version": "0.15.5",
44
"description": "Base32 encoding and decoding functions for PostgreSQL",
55
"author": "Dan Lynch <pyramation@gmail.com>",
66
"contributors": [
@@ -24,7 +24,7 @@
2424
"@pgpm/verify": "workspace:*"
2525
},
2626
"devDependencies": {
27-
"pgpm": "^4.2.3"
27+
"pgpm": "^4.7.9"
2828
},
2929
"repository": {
3030
"type": "git",
@@ -34,4 +34,4 @@
3434
"bugs": {
3535
"url": "https://github.com/constructive-io/pgpm-modules/issues"
3636
}
37-
}
37+
}

packages/base32/pgpm-base32.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pgpm-base32 extension
22
comment = 'pgpm-base32 extension'
3-
default_version = '0.15.3'
3+
default_version = '0.15.5'
44
module_pathname = '$libdir/pgpm-base32'
55
requires = 'pgcrypto,plpgsql,pgpm-verify'
66
relocatable = false

packages/base32/sql/pgpm-base32--0.15.3.sql renamed to packages/base32/sql/pgpm-base32--0.15.5.sql

Lines changed: 59 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
\echo Use "CREATE EXTENSION pgpm-base32" to load this file. \quit
22
CREATE SCHEMA base32;
33

4-
CREATE FUNCTION base32.binary_to_int(input text) RETURNS int AS $EOFCODE$
4+
CREATE FUNCTION base32.binary_to_int(
5+
input text
6+
) RETURNS int AS $EOFCODE$
57
DECLARE
68
i int;
79
buf text;
@@ -12,7 +14,9 @@ BEGIN
1214
END;
1315
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
1416

15-
CREATE FUNCTION base32.to_ascii(input text) RETURNS int[] AS $EOFCODE$
17+
CREATE FUNCTION base32.to_ascii(
18+
input text
19+
) RETURNS int[] AS $EOFCODE$
1620
DECLARE
1721
i int;
1822
output int[];
@@ -24,7 +28,9 @@ BEGIN
2428
END;
2529
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
2630

27-
CREATE FUNCTION base32.to_binary(input int) RETURNS text AS $EOFCODE$
31+
CREATE FUNCTION base32.to_binary(
32+
input int
33+
) RETURNS text AS $EOFCODE$
2834
DECLARE
2935
i int = 1;
3036
j int = 0;
@@ -39,7 +45,9 @@ BEGIN
3945
END;
4046
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
4147

42-
CREATE FUNCTION base32.to_binary(input int[]) RETURNS text[] AS $EOFCODE$
48+
CREATE FUNCTION base32.to_binary(
49+
input int[]
50+
) RETURNS text[] AS $EOFCODE$
4351
DECLARE
4452
i int;
4553
output text[];
@@ -51,7 +59,9 @@ BEGIN
5159
END;
5260
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
5361

54-
CREATE FUNCTION base32.to_groups(input text[]) RETURNS text[] AS $EOFCODE$
62+
CREATE FUNCTION base32.to_groups(
63+
input text[]
64+
) RETURNS text[] AS $EOFCODE$
5565
DECLARE
5666
i int;
5767
output text[];
@@ -67,12 +77,17 @@ BEGIN
6777
END;
6878
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
6979

70-
CREATE FUNCTION base32.string_nchars(text, int) RETURNS text[] AS $EOFCODE$
80+
CREATE FUNCTION base32.string_nchars(
81+
text,
82+
int
83+
) RETURNS text[] AS $EOFCODE$
7184
SELECT ARRAY(SELECT substring($1 from n for $2)
7285
FROM generate_series(1, length($1), $2) n);
7386
$EOFCODE$ LANGUAGE sql IMMUTABLE;
7487

75-
CREATE FUNCTION base32.to_chunks(input text[]) RETURNS text[] AS $EOFCODE$
88+
CREATE FUNCTION base32.to_chunks(
89+
input text[]
90+
) RETURNS text[] AS $EOFCODE$
7691
DECLARE
7792
i int;
7893
output text[];
@@ -83,7 +98,9 @@ BEGIN
8398
END;
8499
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
85100

86-
CREATE FUNCTION base32.fill_chunks(input text[]) RETURNS text[] AS $EOFCODE$
101+
CREATE FUNCTION base32.fill_chunks(
102+
input text[]
103+
) RETURNS text[] AS $EOFCODE$
87104
DECLARE
88105
i int;
89106
output text[];
@@ -101,7 +118,9 @@ BEGIN
101118
END;
102119
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
103120

104-
CREATE FUNCTION base32.to_decimal(input text[]) RETURNS text[] AS $EOFCODE$
121+
CREATE FUNCTION base32.to_decimal(
122+
input text[]
123+
) RETURNS text[] AS $EOFCODE$
105124
DECLARE
106125
i int;
107126
output text[];
@@ -122,7 +141,9 @@ BEGIN
122141
END;
123142
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
124143

125-
CREATE FUNCTION base32.base32_alphabet(input int) RETURNS char(1) AS $EOFCODE$
144+
CREATE FUNCTION base32.base32_alphabet(
145+
input int
146+
) RETURNS char(1) AS $EOFCODE$
126147
DECLARE
127148
alphabet text[] = ARRAY[
128149
'A', 'B', 'C', 'D', 'E', 'F',
@@ -137,7 +158,9 @@ BEGIN
137158
END;
138159
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
139160

140-
CREATE FUNCTION base32.to_base32(input text[]) RETURNS text AS $EOFCODE$
161+
CREATE FUNCTION base32.to_base32(
162+
input text[]
163+
) RETURNS text AS $EOFCODE$
141164
DECLARE
142165
i int;
143166
output text[];
@@ -158,7 +181,9 @@ BEGIN
158181
END;
159182
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
160183

161-
CREATE FUNCTION base32.encode(input text) RETURNS text AS $EOFCODE$
184+
CREATE FUNCTION base32.encode(
185+
input text
186+
) RETURNS text AS $EOFCODE$
162187
BEGIN
163188
IF (character_length(input) = 0) THEN
164189
RETURN '';
@@ -183,7 +208,9 @@ BEGIN
183208
END;
184209
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
185210

186-
CREATE FUNCTION base32.base32_alphabet_to_decimal(input text) RETURNS text AS $EOFCODE$
211+
CREATE FUNCTION base32.base32_alphabet_to_decimal(
212+
input text
213+
) RETURNS text AS $EOFCODE$
187214
DECLARE
188215
alphabet text = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
189216
alpha int;
@@ -196,7 +223,9 @@ BEGIN
196223
END;
197224
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
198225

199-
CREATE FUNCTION base32.base32_to_decimal(input text) RETURNS text[] AS $EOFCODE$
226+
CREATE FUNCTION base32.base32_to_decimal(
227+
input text
228+
) RETURNS text[] AS $EOFCODE$
200229
DECLARE
201230
i int;
202231
output text[];
@@ -209,7 +238,9 @@ BEGIN
209238
END;
210239
$EOFCODE$ LANGUAGE plpgsql STABLE;
211240

212-
CREATE FUNCTION base32.decimal_to_chunks(input text[]) RETURNS text[] AS $EOFCODE$
241+
CREATE FUNCTION base32.decimal_to_chunks(
242+
input text[]
243+
) RETURNS text[] AS $EOFCODE$
213244
DECLARE
214245
i int;
215246
part text;
@@ -227,7 +258,9 @@ BEGIN
227258
END;
228259
$EOFCODE$ LANGUAGE plpgsql STABLE;
229260

230-
CREATE FUNCTION base32.base32_alphabet_to_decimal_int(input text) RETURNS int AS $EOFCODE$
261+
CREATE FUNCTION base32.base32_alphabet_to_decimal_int(
262+
input text
263+
) RETURNS int AS $EOFCODE$
231264
DECLARE
232265
alphabet text = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
233266
alpha int;
@@ -237,7 +270,10 @@ BEGIN
237270
END;
238271
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
239272

240-
CREATE FUNCTION base32.zero_fill(a int, b int) RETURNS bigint AS $EOFCODE$
273+
CREATE FUNCTION base32.zero_fill(
274+
a int,
275+
b int
276+
) RETURNS bigint AS $EOFCODE$
241277
DECLARE
242278
bin text;
243279
m int;
@@ -269,7 +305,9 @@ BEGIN
269305
END;
270306
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
271307

272-
CREATE FUNCTION base32.valid(input text) RETURNS boolean AS $EOFCODE$
308+
CREATE FUNCTION base32.valid(
309+
input text
310+
) RETURNS boolean AS $EOFCODE$
273311
BEGIN
274312
IF (upper(input) ~* '^[A-Z2-7]+=*$') THEN
275313
RETURN true;
@@ -278,7 +316,9 @@ BEGIN
278316
END;
279317
$EOFCODE$ LANGUAGE plpgsql IMMUTABLE;
280318

281-
CREATE FUNCTION base32.decode(input text) RETURNS text AS $EOFCODE$
319+
CREATE FUNCTION base32.decode(
320+
input text
321+
) RETURNS text AS $EOFCODE$
282322
DECLARE
283323
i int;
284324
arr int[];

packages/database-jobs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
EXTENSION = pgpm-database-jobs
2-
DATA = sql/pgpm-database-jobs--0.15.3.sql
2+
DATA = sql/pgpm-database-jobs--0.15.5.sql
33

44
PG_CONFIG = pg_config
55
PGXS := $(shell $(PG_CONFIG) --pgxs)

packages/database-jobs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgpm/database-jobs",
3-
"version": "0.19.0",
3+
"version": "0.15.5",
44
"description": "Database-specific job handling and queue management",
55
"author": "Dan Lynch <pyramation@gmail.com>",
66
"contributors": [
@@ -21,7 +21,7 @@
2121
"test:watch": "jest --watch"
2222
},
2323
"devDependencies": {
24-
"pgpm": "^4.2.3"
24+
"pgpm": "^4.7.9"
2525
},
2626
"dependencies": {
2727
"@pgpm/verify": "workspace:*"
@@ -34,4 +34,4 @@
3434
"bugs": {
3535
"url": "https://github.com/constructive-io/pgpm-modules/issues"
3636
}
37-
}
37+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# pgpm-database-jobs extension
22
comment = 'pgpm-database-jobs extension'
3-
default_version = '0.15.3'
3+
default_version = '0.15.5'
44
module_pathname = '$libdir/pgpm-database-jobs'
5-
requires = 'plpgsql,uuid-ossp,pgcrypto,pgpm-verify'
5+
requires = 'plpgsql,pgcrypto,pgpm-verify'
66
relocatable = false
77
superuser = false
88

0 commit comments

Comments
 (0)