and return value of the function f.db_type called with an argument connection set to connection. if f.null is false, append string append "NOT NULL" to field_output, otherwise append "NULL" to field_output.
field_output . append ( "%sNULL" % ( "NOT " if not f . null else "" ) )