mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
fix(doc): Wrap instance reporting for database schema in an API
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
@@ -367,6 +367,14 @@ It makes sense to apply some general tips from the beginning, so you don't have
|
||||
<?php
|
||||
$table->addUniqueIndex(['your', 'column', 'names', '...'], 'table_name_uniq_feature');
|
||||
|
||||
Querying the database provider
|
||||
------------------------------
|
||||
|
||||
If you would like to find out which database your app is runnning on, use the ``IDBConnection::getDatabaseProvider`` method.
|
||||
This can be helpful in cases where specific databases have their own
|
||||
requirements, such as Oracle limiting ``IN``- queries to 1000 expressions.
|
||||
|
||||
|
||||
Supporting more databases
|
||||
-------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user