query

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: MIT

README

Query

Connect to database and execute a query.

WARNING: This is raw query execution and testing tool. It is not checking query safety or performance. Use it with caution.

Usage

Execute query command with --source and --type flags.

run query on databases
version: v0.0.0 commit: - buildDate:-

Usage:
  query [flags]

Examples:
query --source 'postgres://user:urlencodedpassword@localhost:5432/postgres?application_name=query&search_path=myschema' --type pgx

Flags:
  -h, --help            help for query
      --ping            ping database and exit
      --source string   db data source
      --type string     db data source type, supported types: [pgx, odbc, godror, sqlite3, sqlserver]
  -v, --version         version for query

With docker

docker run -it --rm --name query --entrypoint="/bin/bash" ghcr.io/rytsh/query:latest

Directories

Path Synopsis
cmd
query command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL