<?php

namespace MintyPHP\Repository\Support;

interface DatabaseSessionRepositoryInterface
{
    public function acquireAdvisoryLock(string $lockName, int $timeoutSeconds = 0): bool;

    public function releaseAdvisoryLock(string $lockName): void;

    public function beginTransaction(): void;

    public function commitTransaction(): void;

    public function rollbackTransaction(): void;
}
