Attributes
- Companion
- trait
- Source
- Session.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Session.type
Members list
Grouped members
Constructors
Construct a Session
by wrapping an existing Protocol
, which we assume has already been started up.
Construct a Session
by wrapping an existing Protocol
, which we assume has already been started up.
Attributes
- Source
- Session.scala
Resource yielding a SessionPool
managing up to max
concurrent Session
s.
Resource yielding a SessionPool
managing up to max
concurrent Session
s. Typically you will use
this resource once on application startup and pass the resulting Resource[F, Session[F]]
to the rest of your program.
The pool maintains a cache of queries and commands that have been checked against the schema, eliminating the need to check them more than once. If your program is changing the schema on the fly than you probably don't want this behavior; you can disable it by setting the commandCache
and queryCache
parameters to zero.
Note that calling .flatten
on the nested Resource
returned by this method may seem reasonable, but it will result in a resource that allocates a new pool for each session, which is probably not what you want.
Value parameters
- commandCache
-
Size of the cache for command checking
- database
-
Postgres database
- host
-
Postgres server host
- max
-
Maximum concurrent sessions
- port
-
Postgres port, default 5432
- queryCache
-
Size of the cache for query checking
- user
-
Postgres user
Attributes
- Source
- Session.scala
Resource yielding a function from Tracer to SessionPool
managing up to max
concurrent Session
s.
Resource yielding a function from Tracer to SessionPool
managing up to max
concurrent Session
s. Typically you will use
this resource once on application startup and pass the resulting Resource[F, Session[F]]
to the rest of your program.
The pool maintains a cache of queries and commands that have been checked against the schema, eliminating the need to check them more than once. If your program is changing the schema on the fly than you probably don't want this behavior; you can disable it by setting the commandCache
and queryCache
parameters to zero.
Value parameters
- commandCache
-
Size of the cache for command checking
- database
-
Postgres database
- host
-
Postgres server host
- max
-
Maximum concurrent sessions
- port
-
Postgres port, default 5432
- queryCache
-
Size of the cache for query checking
- user
-
Postgres user
Attributes
- Source
- Session.scala
Type members
Classlikes
Abstract implementation that use the MonadCancelThrow constraint to implement prepared-if-needed API
Abstract implementation that use the MonadCancelThrow constraint to implement prepared-if-needed API
Attributes
- Source
- Session.scala
- Supertypes
Attributes
- Source
- Session.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Recyclers.type
Attributes
- Source
- Session.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- Session.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Source
- Session.scala
Attributes
- Source
- Session.scala
Resource yielding logically unpooled sessions.
Resource yielding logically unpooled sessions. This can be convenient for demonstrations and programs that only need a single session. In reality each session is managed by its own single-session pool. This method is shorthand for Session.pooled(..., max = 1, ...).flatten
.
Attributes
- See also
-
pooled
- Source
- Session.scala
Resource yielding logically unpooled sessions given a Tracer.
Resource yielding logically unpooled sessions given a Tracer. This can be convenient for demonstrations and programs that only need a single session. In reality each session is managed by its own single-session pool.
Attributes
- See also
-
pooledF
- Source
- Session.scala