final case class Statement(sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = ..., unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Statement] with Product with Serializable
A single DML statement.
- sql
Required. The DML string.
- params
Parameter names and values that bind to placeholders in the DML string. A parameter placeholder consists of the
@character followed by the parameter name (for example,@firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example:"WHERE id > @msg_id AND id < @msg_id + 100"It is an error to execute a SQL statement with unbound parameters.- paramTypes
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type
BYTESand values of typeSTRINGboth appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings. In these cases,param_typescan be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Statement
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Statement(sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = ..., unknownFields: UnknownFieldSet = ...)
- sql
Required. The DML string.
- params
Parameter names and values that bind to placeholders in the DML string. A parameter placeholder consists of the
@character followed by the parameter name (for example,@firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example:"WHERE id > @msg_id AND id < @msg_id + 100"It is an error to execute a SQL statement with unbound parameters.- paramTypes
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type
BYTESand values of typeSTRINGboth appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings. In these cases,param_typescan be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllParamTypes(__vs: Iterable[(String, Type)]): Statement
- def addParamTypes(__vs: (String, Type)*): Statement
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearParamTypes: Statement
- def clearParams: Statement
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Statement.type
- Definition Classes
- Statement → GeneratedMessage
- def discardUnknownFields: Statement
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Statement → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Statement → GeneratedMessage
- def getParams: Struct
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val paramTypes: Map[String, Type]
- val params: Option[Struct]
-
def
serializedSize: Int
- Definition Classes
- Statement → GeneratedMessage
- val sql: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Statement → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Statement, Statement]) ⇒ scalapb.lenses.Mutation[Statement]*): Statement
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withParamTypes(__v: Map[String, Type]): Statement
- def withParams(__v: Struct): Statement
- def withSql(__v: String): Statement
- def withUnknownFields(__v: UnknownFieldSet): Statement
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Statement → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage