blob: e6a55ae8464498c52051c216b88ef0e120158513 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
package scala.dbc.statement;
import scala.dbc.statement.expression._;
/** Data to be inserted into a table in an <code>Insert</code>. */
case class SetClause (name:String, expr:Expression) {
val value: Pair[String,Expression] = Pair(name,expr);
def sqlString: String =
value._1 + " = " + value._2.sqlInnerString;
}
|