export function isAlreadyExistsError ( message ) { return /(?:Table|Index).*? already exists$/i . test ( message ) ; } export function isNotExistError ( message ) { return /^no such (?:table|(?:Table|Index)).*?$/ . test ( message ) ; }