CLI

dbnet -h

$ dbnet -h
dbnet - A database client that lets your SQL superpowers shine | https://github.com/dbnet-io/dbnet
Version 0.0.40

  Usage:
    dbnet [conns|serve|exec]

  Subcommands:
    conns   list & test local connections
    serve   launch the dbnet server
    exec    execute a SQL query

  Flags:
       --version   Displays the program version string.
    -h --help      Displays help with available flag, subcommand, and positional value parameters.

dbnet conns

conns - list & test local connections

  Usage:
    conns [list|test]

  Subcommands:
    list   list local connections detected
    test   test a local connection

  Flags:
       --version   Displays the program version string.
    -h --help      Displays help with available flag, subcommand, and positional value parameters.

dbnet exec

exec - execute a SQL query

  Usage:
    exec [conn]

  Positional Variables:
    conn   The connection name (Required)
  Flags:
       --version   Displays the program version string.
    -h --help      Displays help with available flag, subcommand, and positional value parameters.
       --query     The SQL query to execute
       --file      The SQL file to execute

dbnet serve

serve - launch the dbnet server

  Flags:
       --version   Displays the program version string.
    -h --help      Displays help with available flag, subcommand, and positional value parameters.
       --host      The host to use. (default: 0.0.0.0)
       --port      The port to use (default: 5897)

Running dbnet serve:

2023-06-19 09:35:40 INF Serving @ http://0.0.0.0:5987
{"time":"2023-06-19T09:35:40.107434-03:00","level":"INFO","prefix":"echo","message":"Echo (v5.0.0-alpha). High performance, minimalist Go web framework https://echo.labstack.com"}
{"time":"2023-06-19T09:35:40.107443-03:00","level":"INFO","prefix":"echo","message":"http(s) server started on [::]:5987"}
{"time":"2023-06-19T09:35:40.412349-03:00","level":"INFO","id":"1687178140410519000","remote_ip":"::1","host":"localhost:5987","method":"GET","uri":"/static/css/2.3bc1b4fc.chunk.css","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","status":200,"error":"","latency":1798708,"latency_human":"1.798708ms","bytes_in":0,"bytes_out":457971}