org.mariadb.r2dbc.api.MariadbConnection Maven / Gradle / Ivy
The newest version!
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 MariaDB Corporation Ab
package org.mariadb.r2dbc.api;
import io.r2dbc.spi.Connection;
import io.r2dbc.spi.IsolationLevel;
import io.r2dbc.spi.TransactionDefinition;
import io.r2dbc.spi.ValidationDepth;
import java.time.Duration;
import reactor.core.publisher.Mono;
public interface MariadbConnection extends Connection {
@Override
Mono beginTransaction();
@Override
Mono beginTransaction(TransactionDefinition definition);
@Override
Mono close();
@Override
Mono commitTransaction();
@Override
MariadbBatch createBatch();
@Override
Mono createSavepoint(String name);
@Override
MariadbStatement createStatement(String sql);
@Override
MariadbConnectionMetadata getMetadata();
String getDatabase();
Mono setDatabase(String database);
@Override
IsolationLevel getTransactionIsolationLevel();
@Override
boolean isAutoCommit();
boolean isInTransaction();
boolean isInReadOnlyTransaction();
@Override
Mono releaseSavepoint(String name);
@Override
Mono rollbackTransaction();
@Override
Mono rollbackTransactionToSavepoint(String name);
@Override
Mono setAutoCommit(boolean autoCommit);
@Override
Mono setTransactionIsolationLevel(IsolationLevel isolationLevel);
@Override
Mono validate(ValidationDepth depth);
@Override
Mono setLockWaitTimeout(Duration timeout);
@Override
Mono setStatementTimeout(Duration timeout);
long getThreadId();
String getHost();
int getPort();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy