(self, table, indexes)
| 152 | # Create indexes on table |
| 153 | # Return: True on success |
| 154 | def createIndexes(self, table, indexes): |
| 155 | for index in indexes: |
| 156 | if not index.strip().upper().startswith("CREATE"): |
| 157 | self.db.log.error("Index command should start with CREATE: %s" % index) |
| 158 | continue |
| 159 | self.execute(index) |
| 160 | |
| 161 | # Create table if not exist |
| 162 | # Return: True if updated |