(self, curs, objs, new_table_name = None, log = None)
Issues CREATE statements for requested set of objects.

        If new_table_name is giver, creates table under that name
        and also tries to rename all indexes/constraints that conflict
        with existing table.
Issues CREATE statements for requested set of objects.
Issues CREATE statements for requested set of objects .
def create(self, curs, objs, new_table_name = None, log = None):
        """Issues CREATE statements for requested set of objects.

        If new_table_name is giver, creates table under that name
        and also tries to rename all indexes/constraints that conflict
        with existing table.
        """

        for o in self.object_list:
            if o.type & objs:
                sql = o.get_create_sql(curs, new_table_name)
                if not sql:
                    continue
                if log:
                    log.info('Creating %s' % o.name)
                    log.debug(sql)
                curs.execute(sql)
def create ( self , curs , objs , new_table_name = None , log = None ) : for o in self . object_list : if o . type & objs : sql = o . get_create_sql ( curs , new_table_name ) if not sql : continue if log : log . info ( 'Creating %s' % o . name ) log . debug ( sql ) curs . execute ( sql )