@pgpm/inflection 0.14.0 → 0.15.1
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/Makefile
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/inflection",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "String inflection utilities for PostgreSQL naming conventions",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test:watch": "jest --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@pgpm/verify": "0.
|
|
24
|
+
"@pgpm/verify": "0.15.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"pgpm": "^1.0.0"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "dee7b5e6073a88f1fac6ea4064dd01c2bf2cae44"
|
|
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[];
|