code: def create_indexes(clas,pool_or_cursor):
      "this gets called by create_table, but if you've created an index you can use it to add it (assuming none exist)"
      for index in clas.INDEXES:
        # note: these are specified as either 'field,field,field' or a runnable query. you can put any query you want in there
        query = index if 'create index' in index.lower() else 'create index on %s (%s)'%(clas.TABLE,index)
        commit_or_execute(pool_or_cursor,queryf create_indexes(clas,pool_or_cursor):
      "this gets called by create_table, but if you've created an index you can use it to add it (assuming none exist)"
      for index in clas.INDEXES:
        # note: these are specified as either 'field,field,field' or a runnable query. you can put any query you want in there
        query = index if 'create index' in index.lower() else 'create index on %s (%s)'%(clas.TABLE,index)
        commit_or_execute(pool_or_cursor,query)
docs: this gets called by create_table, but if you've created an index you can use it to add it (assuming none exist)