class NNTP::Client
- NNTP::Client
- Reference
- Object
Included Modules
Defined in:
nntp-client/version.crnntp/client.cr
Constant Summary
-
VERSION =
"1.0.2"
Instance Method Summary
-
#checkout
returns a connection from the pool the returned connection must be returned to the pool by explictly calling
Connection#release
-
#close
Closes all connection to the database.
- #connection_pool_options(params : URI::Params)
- #setup_connection(&proc : Connection -> Nil)
-
#uri : URI
Returns the uri with the connection settings to the server
-
#using_connection(&)
yields a connection from the pool the connection is returned to the pool when the block ends
Instance methods inherited from module NNTP::ConnectionContext
discard(connection : Connection)
discard,
release(connection : Connection)
release,
uri : URI
uri
Instance Method Detail
def checkout
#
returns a connection from the pool
the returned connection must be returned
to the pool by explictly calling Connection#release
def using_connection(&)
#
yields a connection from the pool the connection is returned to the pool when the block ends