@pgpm/inflection 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/Makefile +2 -2
- package/README.md +13 -13
- package/package.json +8 -8
- package/pgpm-inflection.control +8 -0
- package/pgpm.plan +2 -2
- package/sql/{launchql-inflection--0.9.0.sql → pgpm-inflection--0.14.0.sql} +5 -1
- package/launchql-inflection.control +0 -8
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2025 Dan Lynch <pyramation@gmail.com>
|
|
4
|
-
Copyright (c) 2025
|
|
4
|
+
Copyright (c) 2025 Constructive
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/Makefile
CHANGED
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# @pgpm/inflection
|
|
2
2
|
|
|
3
3
|
<p align="center" width="100%">
|
|
4
|
-
<img height="250" src="https://raw.githubusercontent.com/
|
|
4
|
+
<img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center" width="100%">
|
|
8
|
-
<a href="https://github.com/
|
|
9
|
-
<img height="20" src="https://github.com/
|
|
8
|
+
<a href="https://github.com/constructive-io/pgpm-modules/actions/workflows/ci.yml">
|
|
9
|
+
<img height="20" src="https://github.com/constructive-io/pgpm-modules/actions/workflows/ci.yml/badge.svg" />
|
|
10
10
|
</a>
|
|
11
|
-
<a href="https://github.com/
|
|
12
|
-
<a href="https://www.npmjs.com/package/@pgpm/inflection"><img height="20" src="https://img.shields.io/github/package-json/v/
|
|
11
|
+
<a href="https://github.com/constructive-io/pgpm-modules/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
|
|
12
|
+
<a href="https://www.npmjs.com/package/@pgpm/inflection"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/pgpm-modules?filename=packages%2Futils%2Finflection%2Fpackage.json"/></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
String inflection utilities for PostgreSQL naming conventions
|
|
@@ -66,7 +66,7 @@ pgpm deploy
|
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
# 1. Create a workspace
|
|
69
|
-
pgpm init
|
|
69
|
+
pgpm init workspace
|
|
70
70
|
|
|
71
71
|
# 2. Create your first module
|
|
72
72
|
cd my-workspace
|
|
@@ -394,13 +394,13 @@ pnpm test
|
|
|
394
394
|
|
|
395
395
|
## Related Tooling
|
|
396
396
|
|
|
397
|
-
* [pgpm](https://github.com/
|
|
398
|
-
* [pgsql-test](https://github.com/
|
|
399
|
-
* [supabase-test](https://github.com/
|
|
400
|
-
* [graphile-test](https://github.com/
|
|
401
|
-
* [pgsql-parser](https://github.com/
|
|
402
|
-
* [libpg-query-node](https://github.com/
|
|
403
|
-
* [pg-proto-parser](https://github.com/
|
|
397
|
+
* [pgpm](https://github.com/constructive-io/constructive/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
|
|
398
|
+
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
|
|
399
|
+
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/packages/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
|
|
400
|
+
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
|
|
401
|
+
* [pgsql-parser](https://github.com/constructive-io/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
|
|
402
|
+
* [libpg-query-node](https://github.com/constructive-io/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
|
|
403
|
+
* [pg-proto-parser](https://github.com/constructive-io/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
|
|
404
404
|
|
|
405
405
|
## Disclaimer
|
|
406
406
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/inflection",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "String inflection utilities for PostgreSQL naming conventions",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
7
|
-
"
|
|
7
|
+
"Constructive <developers@constructive.io>"
|
|
8
8
|
],
|
|
9
9
|
"keywords": [
|
|
10
10
|
"postgresql",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"test:watch": "jest --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@pgpm/verify": "0.
|
|
24
|
+
"@pgpm/verify": "0.15.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"pgpm": "^0.
|
|
27
|
+
"pgpm": "^1.0.0"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
|
-
"url": "https://github.com/
|
|
31
|
+
"url": "https://github.com/constructive-io/pgpm-modules"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://github.com/
|
|
33
|
+
"homepage": "https://github.com/constructive-io/pgpm-modules",
|
|
34
34
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/
|
|
35
|
+
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "118ac6f810720378fa954e9620abf2516293c148"
|
|
38
38
|
}
|
package/pgpm.plan
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
%syntax-version=1.0.0
|
|
2
|
-
%project=
|
|
3
|
-
%uri=
|
|
2
|
+
%project=pgpm-inflection
|
|
3
|
+
%uri=pgpm-inflection
|
|
4
4
|
|
|
5
5
|
schemas/inflection/schema 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/schema
|
|
6
6
|
schemas/inflection/procedures/no_consecutive_caps [schemas/inflection/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/no_consecutive_caps
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
\echo Use "CREATE EXTENSION
|
|
1
|
+
\echo Use "CREATE EXTENSION pgpm-inflection" to load this file. \quit
|
|
2
2
|
CREATE SCHEMA inflection;
|
|
3
3
|
|
|
4
4
|
GRANT USAGE ON SCHEMA inflection TO PUBLIC;
|
|
@@ -184,6 +184,10 @@ FROM
|
|
|
184
184
|
nosingles;
|
|
185
185
|
$EOFCODE$ LANGUAGE sql IMMUTABLE;
|
|
186
186
|
|
|
187
|
+
CREATE FUNCTION inflection.underscore(parts text[]) RETURNS text AS $EOFCODE$
|
|
188
|
+
SELECT inflection.underscore(array_to_string(parts, '_'));
|
|
189
|
+
$EOFCODE$ LANGUAGE sql IMMUTABLE;
|
|
190
|
+
|
|
187
191
|
CREATE FUNCTION inflection.camel(str text) RETURNS text AS $EOFCODE$
|
|
188
192
|
DECLARE
|
|
189
193
|
result text[];
|