@solidactions/cli 3.17.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -849,7 +849,8 @@ async function databaseCreateWithConfig(name, options, config, dependencies = {}
|
|
|
849
849
|
// this combination reach the server means it gets created, waits on
|
|
850
850
|
// provisioning, and only then fails the SQL import with a generic
|
|
851
851
|
// `import_failed`, leaving the database behind consuming quota.
|
|
852
|
-
throw new database_data_plane_1.DatabaseOperationError('invalid_flag_combination', '--from is not supported with --kind duckdb; SQL import only applies to libsql databases. Create the database, then load data with `solidactions database ingest`.'
|
|
852
|
+
throw new database_data_plane_1.DatabaseOperationError('invalid_flag_combination', '--from is not supported with --kind duckdb; SQL import only applies to libsql databases. Create the database, then load data with `solidactions database ingest`.'
|
|
853
|
+
+ ` How analytical databases work: ${ANALYTICAL_DOCS_URL}`);
|
|
853
854
|
}
|
|
854
855
|
const preparedSource = options.from && !io.importDatabase
|
|
855
856
|
? await (0, database_sql_import_runner_1.prepareDatabaseImportSource)(options.from, io.cwd, io.filesystem)
|
|
@@ -915,6 +916,9 @@ async function requestDatabaseRecord(name, config, dependencies = {}) {
|
|
|
915
916
|
const io = resolveDependencies(dependencies);
|
|
916
917
|
return stableDatabaseResponse(await (0, database_data_plane_1.requestDatabaseOperation)(config, { operation: 'show', name }, requestDependencies(io))).database;
|
|
917
918
|
}
|
|
919
|
+
// Kept in sync with the identical suffix the server appends to its own
|
|
920
|
+
// shared analytical refusal sentences (solidactions-app#1760).
|
|
921
|
+
const ANALYTICAL_DOCS_URL = 'https://www.solidactions.com/docs/analytical-databases';
|
|
918
922
|
// Refuses an analytical (duckdb) name for the SQLite-only verbs (exec, dump,
|
|
919
923
|
// pull, push, import), reusing the same `show`-first lookup as `schema` and
|
|
920
924
|
// `query` above. The server (`HandleCliDatabaseOperation`) already refuses
|
|
@@ -925,9 +929,11 @@ async function refuseIfAnalytical(config, name, verb, dependencies = {}) {
|
|
|
925
929
|
if (row.kind !== 'duckdb')
|
|
926
930
|
return;
|
|
927
931
|
if (verb === 'exec') {
|
|
928
|
-
throw new database_data_plane_1.DatabaseOperationError('read_only', "read-only: this is an analytical database — load data with `solidactions database ingest` or your workflow's ingest step"
|
|
932
|
+
throw new database_data_plane_1.DatabaseOperationError('read_only', "read-only: this is an analytical database — load data with `solidactions database ingest` or your workflow's ingest step."
|
|
933
|
+
+ ` How analytical databases work: ${ANALYTICAL_DOCS_URL}`);
|
|
929
934
|
}
|
|
930
|
-
throw new database_data_plane_1.DatabaseOperationError('kind_mismatch', `"${name}" is an analytical database — use \`database ingest\` to load data and \`database query\` to read it
|
|
935
|
+
throw new database_data_plane_1.DatabaseOperationError('kind_mismatch', `"${name}" is an analytical database — use \`database ingest\` to load data and \`database query\` to read it.`
|
|
936
|
+
+ ` How analytical databases work: ${ANALYTICAL_DOCS_URL}`);
|
|
931
937
|
}
|
|
932
938
|
async function databaseShowWithConfig(name, options, config, dependencies = {}) {
|
|
933
939
|
const io = resolveDependencies(dependencies);
|