psqlextra/backend/hstore_required.py
def _create_hstore_required(self, table_name, field, key):
        """Creates a REQUIRED CONSTRAINT for the specified hstore key."""

        name = self._required_constraint_name(
            table_name, field, key)

        sql = self.sql_hstore_required_create.format(
            name=self.quote_name(name),
            table=self.quote_name(table_name),
            field=self.quote_name(field.column),
            key=key
        )
        self.execute(sql)
def _create_hstore_required(self, table_name, field, key):
        name = self._required_constraint_name(
            table_name, field, key)

        sql = self.sql_hstore_required_create.format(
            name=self.quote_name(name),
            table=self.quote_name(table_name),
            field=self.quote_name(field.column),
            key=key
        )
        self.execute(sql)
def _create_hstore_required ( self , table_name , field , key ) : name = self . _required_constraint_name ( table_name , field , key ) sql = self . sql_hstore_required_create . format ( name = self . quote_name ( name ) , table = self . quote_name ( table_name ) , field = self . quote_name ( field . column ) , key = key ) self . execute ( sql )
Creates a REQUIRED CONSTRAINT for the specified hstore key.
Creates a REQUIRED CONSTRAINT for the specified hstore key .