sealed trait SqlFragment extends AnyRef
A SqlFragment represents part or all of a SQL query. The SQL
is described by a sequence of segments, each segment being either a
fragment of SQL, or a value to be inserted into the query in a way that
is safe from SQL injection attacks.
- Self Type
- SqlFragment
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SqlFragment
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(that: SqlFragment): SqlFragment
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def and(elements: Iterable[SqlFragment]): SqlFragment
- def and(first: SqlFragment, rest: SqlFragment*): SqlFragment
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def build(builder: ChunkBuilder[Segment]): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def delete: ZIO[ZConnection, Throwable, Long]
Executes a SQL delete query.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- SqlFragment → AnyRef → Any
- def execute: ZIO[ZConnection, Throwable, Unit]
Executes a SQL statement, such as one that creates a table.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def from(table: SqlFragment): SqlFragment
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- SqlFragment → AnyRef → Any
- def in[B](bs: Iterable[B])(implicit encoder: JdbcEncoder[B]): SqlFragment
- def in[B](b: B, bs: B*)(implicit encoder: JdbcEncoder[B]): SqlFragment
- def insert: ZIO[ZConnection, Throwable, UpdateResult]
Performs an SQL insert query, returning a count of rows inserted and a zio.Chunk of auto-generated keys.
Performs an SQL insert query, returning a count of rows inserted and a zio.Chunk of auto-generated keys. By default, auto-generated keys are parsed and returned as
Chunk[Long]. If keys are non-numeric, aChunk.emptyis returned. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def not(fragment: SqlFragment): SqlFragment
- def notIn[B](bs: Iterable[B])(implicit encoder: JdbcEncoder[B]): SqlFragment
- def notIn[B](b: B, bs: B*)(implicit encoder: JdbcEncoder[B]): SqlFragment
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def or(elements: Iterable[SqlFragment]): SqlFragment
- def or(first: SqlFragment, rest: SqlFragment*): SqlFragment
- def query[A](implicit arg0: JdbcDecoder[A]): Query[A]
- def segments: Chunk[Segment]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- SqlFragment → AnyRef → Any
- def update: ZIO[ZConnection, Throwable, Long]
Performs a SQL update query, returning a count of rows updated.
- def values[B](b: B, bs: B*)(implicit encoder: JdbcEncoder[B]): SqlFragment
- def values[B](bs: Iterable[B])(implicit encoder: JdbcEncoder[B]): SqlFragment
- def valuesBatched[B](bs: Iterable[B], batchSize: Int = 2000, tableName: String)(keys: String*)(implicit encoder: JdbcEncoder[B]): Seq[SqlFragment]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def where(predicate: SqlFragment): SqlFragment