object Database
- Source
- Database.scala
- Alphabetic
- By Inheritance
- Database
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type StreamIO[A] = Stream[IO, A]
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromCore(db: BasicDatabaseDef[IO]): Database
Create a slick.cats.Database from an already-open core Slick database.
Create a slick.cats.Database from an already-open core Slick database.
This is a low-level escape hatch intended for integration points that already have a
BasicBackend#BasicDatabaseDef[IO].In regular application code, prefer
resource. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make(config: DatabaseConfig): IO[Database]
Create a new database instance from a database configuration.
Create a new database instance from a database configuration.
The returned
cats.effect.IOyields a fresh slick.cats.Database. The caller owns the lifecycle and must calldb.close()when done.If you want automatic lifecycle management, prefer
resource. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def resource(config: DatabaseConfig): Resource[IO, Database]
Open a new database as a
Resourceand always close it.Open a new database as a
Resourceand always close it.Each invocation opens a new database instance, so this should usually wrap the whole program that needs a database, not individual queries.
Acquire this once at the top-most level and pass it down. In normal application usage, keep only one opened database at a time.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)

edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...