Pure

ldbc.statement.Command.Pure
case class Pure(statement: String, params: List[Dynamic]) extends Command

Attributes

Source
Command.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Command
trait SQL
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def ++(sql: SQL): SQL

Attributes

Definition Classes
SQL
Source
Command.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def returning[T <: String | Int | Long](using decoder: Decoder[T]): DBIO[T]

A method to execute an insert operation against the MySQL server.

A method to execute an insert operation against the MySQL server.

 TableQuery[User]
   .insertInto(user => user.name *: user.age)
   .values(("Alice", 20))
   .returning[Long]

Type parameters

T

The type of the primary key

Attributes

Returns

The primary key value

Inherited from:
Command
Source
Command.scala
def update: DBIO[Int]

A method to execute an update operation against the MySQL server.

A method to execute an update operation against the MySQL server.

 TableQuery[User]
   .update(user => user.id *: user.name *: user.age)((1L, "Alice", 20))
   .where(_.id === 1L)
   .update

Attributes

Returns

The number of rows updated

Inherited from:
Command
Source
Command.scala