Verified Owner
Top Fields Constructors Methods
org.jabref.logic.search.sqlbased

public Class PostgresServer

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Annotations
@NullMarked
Imports
java.io.IOException, java.sql.Connection, .SQLException, javax.sql.DataSource, org.jabref.model.search.PostgresConstants, io.zonky.test.db.postgres.embedded.EmbeddedPostgres, org.jspecify.annotations.NullMarked, .Nullable, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final DataSource
private final io.zonky.test.db.postgres.embedded.EmbeddedPostgres
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

private void
public @Nullable Connection
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dataSourceback to summary
private final DataSource dataSource
embeddedPostgresback to summary
private final io.zonky.test.db.postgres.embedded.EmbeddedPostgres embeddedPostgres
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

PostgresServerback to summary
public PostgresServer()

Method Detail

addFunctionsback to summary
private void addFunctions()
addTrigramExtensionback to summary
private void addTrigramExtension()
closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
createSchemeback to summary
private void createScheme()
getConnectionback to summary
public @Nullable Connection getConnection()