Statement

ldbc.connector.net.protocol.Statement
See theStatement companion object
trait Statement[F[_]]

A statement is an object that represents a precompiled SQL statement.

Type parameters

F

The effect type

Attributes

Companion
object
Source
Statement.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Client[F]
class Server[F]

Members list

Value members

Abstract methods

def close(): F[Unit]

Releases this Statement object's database and LDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.

Releases this Statement object's database and LDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.

Calling the method close on a Statement object that is already closed has no effect.

Note: When a Statement object is closed, its current ResultSet object, if one exists, is also closed.

Attributes

Source
Statement.scala

Executes the specified SQL statement and returns one or more ResultSet objects.

Executes the specified SQL statement and returns one or more ResultSet objects.

Attributes

Source
Statement.scala
def executeUpdate(): F[Int]

Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.

Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.

Attributes

Source
Statement.scala

Retrieves any auto-generated keys created as a result of executing this Statement object.

Retrieves any auto-generated keys created as a result of executing this Statement object.

Attributes

Source
Statement.scala