diff options
Diffstat (limited to 'lib/public/IDBConnection.php')
-rw-r--r-- | lib/public/IDBConnection.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php index fe0267facc5..a528bb1a57b 100644 --- a/lib/public/IDBConnection.php +++ b/lib/public/IDBConnection.php @@ -45,6 +45,18 @@ use OCP\DB\QueryBuilder\IQueryBuilder; * @since 6.0.0 */ interface IDBConnection { + /* @since 28.0.0 */ + public const PLATFORM_MYSQL = 'mysql'; + + /* @since 28.0.0 */ + public const PLATFORM_ORACLE = 'oracle'; + + /* @since 28.0.0 */ + public const PLATFORM_POSTGRES = 'postgres'; + + /* @since 28.0.0 */ + public const PLATFORM_SQLITE = 'sqlite'; + /** * Gets the QueryBuilder for the connection. * @@ -339,4 +351,12 @@ interface IDBConnection { * @since 13.0.0 */ public function migrateToSchema(Schema $toSchema): void; + + /** + * Returns the database provider name + * @link https://github.com/nextcloud/server/issues/30877 + * @since 28.0.0 + * @return IDBConnection::PLATFORM_* + */ + public function getDatabaseProvider(): string; } |