Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 25, 2024
1 parent 95d5cb4 commit 9e4143c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions helpers_table-name.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,11 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-pg
*
* @returns {Table}
*/
function _TN(s) {
const [schema, table] = (s.raw ? s[0] : s).split('.');
function _TN(a, ...args) {
if (Array.isArray(a) &amp;&amp; a.raw) {
a = args.length ? args.map((b, i) => a[i] + b).join('') : a[0];
}
const [schema, table] = a.split('.');
return table === undefined ? {table: schema} : {schema, table};
}

Expand Down

0 comments on commit 9e4143c

Please sign in to comment.