import { AdapterPool } from './types' ; const removeEventSubscriber = async ( pool , params ) : Promise < void > => { const { subscribersTableName , executeQuery , escapeId , escape } = pool ; const { applicationName , eventSubscriber } = params ; const subscribersTableNameAsId = escapeId ( subscribersTableName ) ; await executeQuery ( `
    DELETE FROM ${ subscribersTableNameAsId }
    WHERE "applicationName" = ${ escape ( applicationName ) }
    AND "eventSubscriber" = ${ escape ( eventSubscriber ) };
  ` ) ; } ; export default removeEventSubscriber ;