Connect to PostgreSQL, MySQL, SQLite, and MongoDB databases.
cortex plugin install marketplace:cortex-plugin-database-explorer
cortex plugin install github:CortexPrism/cortex-plugin-database-explorer
cortex plugin install ./manifest.jsonConnect to a database.
connection_string(string, required) — Connection string (stored as secret)db_type(string, required) — postgresql, mysql, sqlite, mongodb
Execute a database query.
query(string, required) — SQL query or MongoDB aggregationparams(string, optional) — JSON array of query parameterslimit(number, default: 100) — Maximum rows to return
List all tables/collections. No parameters.
Describe a table or collection schema.
table_name(string, required) — Table or collection name
Generate a database migration.
description(string, required) — Migration descriptionfrom_schema(string, optional) — Source schemato_schema(string, optional) — Target schema
Explain query execution plan.
query(string, required) — SQL query to explain
Set default database type and connection string under the "Connection" section in plugin settings.
deno cache mod.ts
deno task test
deno fmt
deno lintMIT