Skip to content

Commit

Permalink
Merge pull request #11127 from nextcloud/doc/getDatabaseProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala authored Sep 29, 2023
2 parents d1af5a4 + f799986 commit acf3b81
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 acf3b81

Please sign in to comment.