Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

exp:expcassandraimport

Import the tables of an Apache Cassandra or ScyllaDB keyspace into the site's database or a data table connection.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/expcassandraimport.md

On this page

This page is a translation. Read the English original

exp:expcassandraimport

Import the tables of an Apache Cassandra or ScyllaDB keyspace into the site's database or a data table connection.

Skript bin/php/expcassandraimport.php, Code in kernel/private/classes/commands/expcassandraimport.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expcassandraimport --help
./console exp:cassandra:import --help
php bin/php/expcassandraimport.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Import the tables of an Apache Cassandra or ScyllaDB keyspace into a database of this installation
Reads the keyspace through CQL (PHP 8.1 and the library mroosz/php-cassandra), makes the tables in the
site's database or in a data table connection (--connection), and copies the rows page by page. The
source is a data table connection of the engine cassandra or scylladb (--source), or a server named here.
Without --apply it shows the tables it would make and does nothing.

./console exp:cassandra:import --source=events --list
./console exp:cassandra:import --source=events --prefix=ev_
./console exp:cassandra:import --server=cass1,cass2 --keyspace=shop --user=reader --secret=env:CASSANDRA_PASSWORD --apply
./console exp:cassandra:import --source=events --tables=orders --connection=archive --mode=replace --apply --format=json

Exit code: 0 done (or planned); 1 a table or row failed; 2 wrong options or no connection.

Optionen

OptionWertHilfe
--listList the tables of the keyspace with their columns, and stop
--applyMake the tables and copy the rows (without it: show the plan only)
--dry-runShow the plan only (the default)
--sourceerforderlichThe data table connection to read (engine cassandra or scylladb)
--engineerforderlichWithout --source: cassandra (the default) or scylladb
--servererforderlichWithout --source: the node or nodes (host, host:port, a comma list)
--porterforderlichWithout --source: the port (9042)
--keyspaceerforderlichWithout --source: the keyspace
--usererforderlichWithout --source: the user
--secreterforderlichWithout --source: the password, as the name of a secret (Setup > Secrets) or env:VARIABLE
--connectionerforderlichThe database to import into: site (the default) or the identifier of a data table connection
--tableserforderlichOnly these tables (a comma list)
--prefixerforderlichPut this in front of every table name (lower case letters, digits, ), e.g. ev
--modeerforderlichcreate (the default: new tables only), append (add rows), replace (delete the rows first)
--formaterforderlichtext (Standard) oder json

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expcassandraimport.php, kernel/private/classes/commands/expcassandraimport.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x