Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@sqltype_for("double")
def type_double(self):
return self.types["float"]
@sqltype_for("blob")
def type_blob(self):
return self.types["text"]
@sqltype_for("reference TFK")
def type_reference_tfk(self):
return (
" FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_table)s"
+ " (%(foreign_key)s)"
)
@sqltype_for("string")
def type_string(self):
return str
@sqltype_for("date")
def type_date(self):
return "DATE"
@sqltype_for("double")
def type_float(self):
return "BINARY_DOUBLE"
@sqltype_for('list:reference')
def type_list_reference(self):
return 'BIGINT[]'
@sqltype_for("datetime")
def type_datetime(self):
return "DATETIME"
@sqltype_for("big-id")
def type_big_id(self):
return (
"bigint not null unique with default next value for %s"
% self.INGRES_SEQNAME
)
@sqltype_for("text")
def type_text(self):
return "LONGTEXT"