INNER CODE UNIT · JavaScript

selectAll

currycan/HaTickets · desktop/src/sql/index.js:135

export const selectAll = async (tableName) => {
    if (!isAllowedTable(tableName)) {
        throw new Error(`Table "${tableName}" is not allowed`);
    }
    return select(`SELECT * FROM ${tableName}`);
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…