Open Data Catalog v2.0.0
Drupal\dkan_sql_endpoint\Service Class Reference
Inheritance diagram for Drupal\dkan_sql_endpoint\Service:

Public Member Functions

 __construct (ConfigFactory $configFactory)
 
 getTableName (string $sqlString)
 
 getQueryObject (string $sqlString)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Detailed Description

Class Service.

Definition at line 16 of file Service.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_sql_endpoint\Service::__construct ( ConfigFactory  $configFactory)

Constructor.

Definition at line 31 of file Service.php.

Member Function Documentation

◆ create()

static Drupal\dkan_sql_endpoint\Service::create ( ContainerInterface  $container)
static

Inherited.

@inheritDoc

Definition at line 24 of file Service.php.

◆ getQueryObject()

Drupal\dkan_sql_endpoint\Service::getQueryObject ( string  $sqlString)

Get a query object from a sql string.

Parameters
string$sqlStringA string with a sql statement.
Returns
\Drupal\dkan_datastore\Storage\Query A query object.

Definition at line 72 of file Service.php.

◆ getTableName()

Drupal\dkan_sql_endpoint\Service::getTableName ( string  $sqlString)

Get table name.

Parameters
string$sqlStringA string with an sql statement.
Returns
string The table name from the sql statement.
Exceptions

Definition at line 46 of file Service.php.