public function SqlImport::import in MongoDB 8.2
The command implementation for most-ikv: import the DB KV to MongoDB.
File
- modules/
mongodb_storage/ src/ Install/ SqlImport.php, line 180
Class
- SqlImport
- Service providing the import of the SQL-based KV storage to MongoDB.
Namespace
Drupal\mongodb_storage\InstallCode
public function import() {
$cursor = $this
->getCollections(static::KVP_TABLE);
echo static::KVP_TABLE . PHP_EOL;
$this
->importPersistent($cursor);
$cursor = $this
->getCollections(static::KVE_TABLE);
echo static::KVE_TABLE . PHP_EOL;
$this
->importExpirable($cursor, static::KVE_TABLE);
}