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

Public Member Functions

 __construct (Metastore $metastoreService, Datastore $datastoreService, ResourceLocalizer $resourceLocalizer)
 
 import ($uuid, $deferred=FALSE)
 
 list ($options=[ 'format'=> 'table', 'status'=> NULL, 'uuid-only'=> FALSE,])
 
 drop ($uuid)
 
 dropAll ()
 

Protected Attributes

 $metastoreService
 
 $datastoreService
 

Detailed Description

Drush commands for controlling the datastore.

@codeCoverageIgnore

Definition at line 17 of file Drush.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\datastore\Drush::__construct ( Metastore  $metastoreService,
Datastore  $datastoreService,
ResourceLocalizer  $resourceLocalizer 
)

Constructor for DkanDatastoreCommands.

Definition at line 43 of file Drush.php.

Member Function Documentation

◆ drop()

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

Drop a datastore.

Parameters
string$uuidThe uuid of a dataset resource.

@command dkan:datastore:drop @aliases dkan-datastore:drop

Deprecated:
dkan-datastore:drop is deprecated and will be removed in a future Dkan release. Use dkan:datastore:drop instead.

Definition at line 153 of file Drush.php.

◆ dropAll()

Drupal\datastore\Drush::dropAll ( )

Drop a ALL datastore tables.

@command dkan:datastore:drop-all

Definition at line 188 of file Drush.php.

◆ import()

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

Import a datastore.

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 @aliases dkan-datastore:import
Deprecated:
dkan-datastore:import is deprecated and will be removed in a future Dkan release. Use dkan:datastore:import instead.

Definition at line 66 of file Drush.php.

◆ list()

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

List information about all datastores.

@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 @aliases dkan-datastore:list

Deprecated:
dkan-datastore:list is deprecated and will be removed in a future Dkan release. Use dkan:datastore:list instead.

Definition at line 96 of file Drush.php.

Member Data Documentation

◆ $datastoreService

Drupal\datastore\Drush::$datastoreService
protected

Definition at line 31 of file Drush.php.

◆ $metastoreService

Drupal\datastore\Drush::$metastoreService
protected

Definition at line 24 of file Drush.php.