Open Data Catalog v2.0.0
Drupal\dkan_datastore\Drush Class Reference
Inheritance diagram for Drupal\dkan_datastore\Drush:

Public Member Functions

 __construct ()
 
 import ($uuid, $deferred=FALSE)
 
 list ($options=[ 'format'=> 'table', 'status'=> NULL, 'uuid-only'=> FALSE,])
 
 drop ($uuid)
 

Protected Attributes

 $datastoreService
 
 $logger
 

Detailed Description

Drush commands for controlling the datastore.

@codeCoverageIgnore

Definition at line 15 of file Drush.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_datastore\Drush::__construct ( )

Constructor for DkanDatastoreCommands.

Definition at line 34 of file Drush.php.

Member Function Documentation

◆ drop()

Drupal\dkan_datastore\Drush::drop (   $uuid)

Drop.

Parameters
string$uuidThe uuid of a dataset.

@command dkan-datastore:drop

Definition at line 136 of file Drush.php.

◆ import()

Drupal\dkan_datastore\Drush::import (   $uuid,
  $deferred = FALSE 
)

Import.

Parameters
string$uuidThe uuid of a resource.
bool$deferredWhether or not the process should be deferred to a queue.

@TODO pass configurable options for csv delimiter, quite, and escape characters. @command dkan-datastore:import

Definition at line 50 of file Drush.php.

◆ list()

Drupal\dkan_datastore\Drush::list (   $options = [ 'format' =,
'table'  ,
'status'  ,
NULL  ,
'uuid-only'  ,
FALSE  ,
]   
)

List.

@field-labels uuid: Resource UUID fileName: File Name fileFetcherStatus: FileFetcher fileFetcherBytes: Processed importerStatus: Importer importerBytes: Processed

@options format The format of the data. @options status Show imports of the given status. @options uuid-only Only the list of uuids.

@command dkan-datastore:list

Definition at line 81 of file Drush.php.

Member Data Documentation

◆ $datastoreService

Drupal\dkan_datastore\Drush::$datastoreService
protected

Definition at line 22 of file Drush.php.

◆ $logger

Drupal\dkan_datastore\Drush::$logger
protected

Definition at line 29 of file Drush.php.