@pgpm/inflection 0.14.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/Makefile CHANGED
@@ -1,5 +1,5 @@
1
- EXTENSION = launchql-inflection
2
- DATA = sql/launchql-inflection--0.9.0.sql
1
+ EXTENSION = pgpm-inflection
2
+ DATA = sql/pgpm-inflection--0.14.0.sql
3
3
 
4
4
  PG_CONFIG = pg_config
5
5
  PGXS := $(shell $(PG_CONFIG) --pgxs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/inflection",
3
- "version": "0.14.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": [
@@ -21,7 +21,7 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/verify": "0.14.0"
24
+ "@pgpm/verify": "0.15.0"
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": "7369638ab084da95b0cb00ec63ad236637f6ebe5"
37
+ "gitHead": "118ac6f810720378fa954e9620abf2516293c148"
38
38
  }
@@ -0,0 +1,8 @@
1
+ # pgpm-inflection extension
2
+ comment = 'pgpm-inflection extension'
3
+ default_version = '0.14.0'
4
+ module_pathname = '$libdir/pgpm-inflection'
5
+ requires = 'plpgsql,unaccent,uuid-ossp,pgpm-verify'
6
+ relocatable = false
7
+ superuser = false
8
+
package/pgpm.plan CHANGED
@@ -1,6 +1,6 @@
1
1
  %syntax-version=1.0.0
2
- %project=launchql-inflection
3
- %uri=launchql-inflection
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 launchql-inflection" to load this file. \quit
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[];
@@ -1,8 +0,0 @@
1
- # launchql-inflection extension
2
- comment = 'launchql-inflection extension'
3
- default_version = '0.9.0'
4
- module_pathname = '$libdir/launchql-inflection'
5
- requires = 'plpgsql,unaccent,uuid-ossp,launchql-verify'
6
- relocatable = false
7
- superuser = false
8
-