Skip to content

Commit

Permalink
fix(doc): Wrap instance reporting for database schema in an API
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <anna@nextcloud.com>
  • Loading branch information
miaulalala committed Sep 29, 2023
1 parent d1af5a4 commit f799986
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions developer_manual/basics/storage/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------

Expand Down

0 comments on commit f799986

Please sign in to comment.