src/Pure/General/sql.scala
changeset 65602 d9533e9615ad
parent 65598 5deef985e38e
child 65610 e6e3fed86519
equal deleted inserted replaced
65601:e76d8f3e5478 65602:d9533e9615ad
    90     def sql_name: String = quote_ident(name)
    90     def sql_name: String = quote_ident(name)
    91     def sql_decl(sql_type: Type.Value => String): String =
    91     def sql_decl(sql_type: Type.Value => String): String =
    92       sql_name + " " + sql_type(T) + (if (strict || primary_key) " NOT NULL" else "")
    92       sql_name + " " + sql_type(T) + (if (strict || primary_key) " NOT NULL" else "")
    93 
    93 
    94     def sql_where_eq: String = "WHERE " + sql_name + " = "
    94     def sql_where_eq: String = "WHERE " + sql_name + " = "
    95     def sql_where_eq_string(s: String): String = sql_where_eq + quote_string(s)
    95     def sql_where_equal(s: String): String = sql_where_eq + quote_string(s)
    96 
    96 
    97     override def toString: String = sql_decl(sql_type_default)
    97     override def toString: String = sql_decl(sql_type_default)
    98   }
    98   }
    99 
    99 
   100 
   100