// ███████╗███████╗ ██████╗ █████╗ ██████╗ ███████╗ ████████╗ █████╗ ██████╗ ██╗ ███████╗ // ██╔════╝██╔════╝██╔════╝██╔══██╗██╔══██╗██╔════╝ ╚══██╔══╝██╔══██╗██╔══██╗██║ ██╔════╝ // █████╗ ███████╗██║ ███████║██████╔╝█████╗ ██║ ███████║██████╔╝██║ █████╗ // ██╔══╝ ╚════██║██║ ██╔══██║██╔═══╝ ██╔══╝ ██║ ██╔══██║██╔══██╗██║ ██╔══╝ // ███████╗███████║╚██████╗██║ ██║██║ ███████╗ ██║ ██║ ██║██████╔╝███████╗███████╗ // ╚══════╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝╚══════╝ // // ███╗ ██╗ █████╗ ███╗ ███╗███████╗ // ████╗ ██║██╔══██╗████╗ ████║██╔════╝ // ██╔██╗ ██║███████║██╔████╔██║█████╗ // ██║╚██╗██║██╔══██║██║╚██╔╝██║██╔══╝ // ██║ ╚████║██║ ██║██║ ╚═╝ ██║███████╗ // ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ // // Given a table name, escape it for the database and add the postgres schema // if needed. module.exports = function escapeTableName(name) { name = '`' + name + '`'; return name; };