5 use Drupal\Core\Database\Connection;
23 $this->identifier = $identifier;
24 $this->setOurSchema();
34 $result = parent::retrieve($id);
44 return "harvest_{$this->identifier}";
52 protected function prepareData(
string $data,
string $id = NULL): array {
53 return [
"id" => $id,
"data" => $data];
68 private function setOurSchema() {
71 'id' => [
'type' =>
'varchar',
'not null' => TRUE,
'length' => 190],
72 'data' => [
'type' =>
'text',
'length' => 65535],
74 'primary key' => [
'id'],
77 $this->setSchema($schema);