@pgpm/inflection 0.12.0 → 0.12.2

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.
@@ -48,5 +48,12 @@ FROM
48
48
  $$
49
49
  LANGUAGE 'sql'
50
50
  IMMUTABLE;
51
- COMMIT;
52
51
 
52
+ CREATE FUNCTION inflection.underscore (parts text[])
53
+ RETURNS text
54
+ AS $$
55
+ SELECT inflection.underscore(array_to_string(parts, '_'));
56
+ $$
57
+ LANGUAGE 'sql'
58
+ IMMUTABLE;
59
+ COMMIT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/inflection",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "String inflection utilities for PostgreSQL naming conventions",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/launchql/pgpm-modules/issues"
36
36
  },
37
- "gitHead": "b106c3afcb5152f177f411bf89bbef392fbd2375"
37
+ "gitHead": "880c1b99631ac536288584ace0ac3dd40300f17e"
38
38
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  BEGIN;
4
4
 
5
- DROP FUNCTION inflection.underscore;
5
+ DROP FUNCTION inflection.underscore(text[]);
6
+ DROP FUNCTION inflection.underscore(text);
6
7
 
7
8
  COMMIT;
@@ -2,6 +2,7 @@
2
2
 
3
3
  BEGIN;
4
4
 
5
- SELECT verify_function ('inflection.underscore');
5
+ SELECT verify_function ('inflection.underscore(text)');
6
+ SELECT verify_function ('inflection.underscore(text[])');
6
7
 
7
8
  ROLLBACK;