|
Tripal
|


Public Member Functions | |
| findVersion (?string $schema_name=NULL, bool $exact_version=FALSE) | |
| getAvailableInstances () | |
| getTripalDbxClass ($class) | |
Public Member Functions inherited from Drupal\tripal\TripalDBX\TripalDbxConnection | |
| __construct (string $schema_name='', $database='default', ?\Drupal\tripal\Services\TripalLogger $logger=NULL) | |
| getDatabaseName () | |
| getDatabaseKey () | |
| getMessageLogger () | |
| setMessageLogger (\Drupal\tripal\Services\TripalLogger $logger) | |
| schema () | |
| setSchemaName (string $schema_name) | |
| getSchemaName () | |
| getQuotedSchemaName () | |
| getExtraSchemas () | |
| clearExtraSchemas () | |
| addExtraSchema (string $schema_name) | |
| setExtraSchema (string $schema_name, int $index=2) | |
| getVersion () | |
| useTripalDbxSchemaFor ($object_or_class) | |
| useDrupalSchemaFor ($object_or_class) | |
| shouldUseTripalDbxSchema () | |
| prefixTables ($sql) | |
| tablePrefix ( $table='default', bool $use_tdbx_schema=FALSE) | |
| getPrefix () | |
| executeSqlQueries (string $sql_queries, $search_path_mode=FALSE, ?string $schema_name=NULL) | |
| executeSqlFile (string $sql_file_path, $search_path_mode=FALSE, ?string $schema_name=NULL) | |
| escapeTable ($table) | |
| getListClassesUsingTripalDbx () | |
| __toString () | |
Additional Inherited Members | |
Protected Member Functions inherited from Drupal\tripal\TripalDBX\TripalDbxConnection | |
| getDefaultSchemaName (?string $schema_name=NULL, string $error_message='') | |
Static Protected Member Functions inherited from Drupal\tripal\TripalDBX\TripalDbxConnection | |
| static | openNewPdoConnection (\Drupal\Core\Database\Connection $database) |
Protected Attributes inherited from Drupal\tripal\TripalDBX\TripalDbxConnection | |
| $identifierQuotes | |
| $database = NULL | |
| $databaseName = '' | |
| $dbKey = '' | |
| $usedSchemas = [] | |
| $version = NULL | |
| $messageLogger = NULL | |
| $tripalDbxApi = NULL | |
| $objectsUsingTripalDbx = [] | |
| $classesUsingTripalDbx = [] | |
Fake connection class.
| Drupal\Tests\tripal\Kernel\TripalDBX\Subclass\TripalDbxConnectionFake::findVersion | ( | ?string | $schema_name = NULL, |
| bool | $exact_version = FALSE |
||
| ) |
{Returns the version number of the given Tripal DBX managed schema.
| ?string | $schema_name A schema name or NULL to work on current schema. | |
| bool | $exact_version | Returns the most precise version available. Default: FALSE. |
Reimplemented from Drupal\tripal\TripalDBX\TripalDbxConnection.
| Drupal\Tests\tripal\Kernel\TripalDBX\Subclass\TripalDbxConnectionFake::getAvailableInstances | ( | ) |
{Get the list of available "Tripal DBX Managed schema" instances in current database.This function returns both PostgreSQL schemas integrated with Tripal and free schemas.
Reimplemented from Drupal\tripal\TripalDBX\TripalDbxConnection.
| Drupal\Tests\tripal\Kernel\TripalDBX\Subclass\TripalDbxConnectionFake::getTripalDbxClass | ( | $class | ) |
{Gets the Tripal DBX-specific class for the specified category.Returns the Tripal DBX-specific override class if any for the specified class category.
| string | $class | The class category for which we want the specific class. |
Reimplemented from Drupal\tripal\TripalDBX\TripalDbxConnection.