Packages

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 BYTES and values of type STRING both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings. In these cases, param_types can 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()
Linear Supertypes
Product, Equals, Updatable[Statement], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Statement
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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 BYTES and values of type STRING both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings. In these cases, param_types can 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllParamTypes(__vs: Iterable[(String, Type)]): Statement
  5. def addParamTypes(__vs: (String, Type)*): Statement
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearParamTypes: Statement
  8. def clearParams: Statement
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def companion: Statement.type
    Definition Classes
    Statement → GeneratedMessage
  11. def discardUnknownFields: Statement
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Statement → GeneratedMessage
  16. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Statement → GeneratedMessage
  17. def getParams: Struct
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val paramTypes: Map[String, Type]
  23. val params: Option[Struct]
  24. def serializedSize: Int
    Definition Classes
    Statement → GeneratedMessage
  25. val sql: String
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  28. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  29. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  30. def toProtoString: String
    Definition Classes
    Statement → GeneratedMessage
  31. val unknownFields: UnknownFieldSet
  32. def update(ms: (Lens[Statement, Statement]) ⇒ scalapb.lenses.Mutation[Statement]*): Statement
    Definition Classes
    Updatable
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. def withParamTypes(__v: Map[String, Type]): Statement
  37. def withParams(__v: Struct): Statement
  38. def withSql(__v: String): Statement
  39. def withUnknownFields(__v: UnknownFieldSet): Statement
  40. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  41. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Statement → GeneratedMessage
  42. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[Statement]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped