Components
5/27/25
Components
ConnectionPool
: holds connections in itself and give them when requested.ConnectionPoolBuilder
: Chainable builder forConnectionPool
, for people who prefer it over big initialization.Connection
: represents single database connection, can be retrieved fromConnectionPool
or created withconnect
method.Transaction
: represents database transaction, can be made fromConnection
.Cursor
: represents database cursor, can be made fromConnection
,Transaction
andPreparedStatement
.PreparedStatement
: represents PostgreSQL prepared statement.Listener
: object to work with LISTEN/NOTIFY functionality, can be mode fromConnectionPool
.QueryResult
: represents list of results from database.SingleQueryResult
: represents single result from the database.Exceptions
: we have some custom exceptions.