How to use the delete function from knex

Find comprehensive JavaScript knex.delete code examples handpicked from public code repositorys.

95
96
97
98
99
100
101
102
103
104
 * This generally shouldn't be used in favour of `bot.database.leaveServer`
 * @param {ServerID} serverID The server's Snowflake ID
 * @returns {Promise<Array>}
 */
deleteServer: function deleteServer(serverID) {
    return knex.delete()
        .from(SERVERS_TABLE)
        .where({
            server: serverID
        });
fork icon7
star icon35
watch icon0

+ 41 other calls in file