(table)
| 176 | } |
| 177 | |
| 178 | tableExistsQuery(table) { |
| 179 | const tableName = table.tableName || table; |
| 180 | // The default schema is the authorization ID of the owner of the plan or package. |
| 181 | // https://www.ibm.com/docs/en/db2-for-zos/12?topic=concepts-db2-schemas-schema-qualifiers |
| 182 | const schemaName = table.schema || this.sequelize.config.username.toUpperCase(); |
| 183 | |
| 184 | // https://www.ibm.com/docs/en/db2-for-zos/11?topic=tables-systables |
| 185 | return `SELECT name FROM sysibm.systables WHERE NAME = ${wrapSingleQuote(tableName)} AND CREATOR = ${wrapSingleQuote(schemaName)}`; |
| 186 | } |
| 187 | |
| 188 | dropTableQuery(tableName) { |
| 189 | const query = 'DROP TABLE <%= table %>'; |
no test coverage detected