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 ee86c25 commit 7be7c15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers_table-name.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-pg
a = a.map((b, i) => b + (i &lt; args.length ? args[i] : '')).join('');
} // else 'a' is a string
const [schema, table] = a.split('.');
return table === undefined ? {table: schema} : {schema, table};
if(table === undefined) {
return {table: schema};
}
return schema ? {schema, table} : {table};
}

module.exports = {TableName, _TN};
Expand Down

0 comments on commit 7be7c15

Please sign in to comment.