elasticsql

command module
v0.0.0-...-96bd54b Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 4 Imported by: 0

README

This repo contains cli wrapper for github.com/cch123/elasticsql

Usage

elasticsql "SELECT * FROM my_table m WHERE m.id > 3"


{"query" : {"bool" : {"must" : [{"range" : {"m.id" : {"gt" : "3"}}}]}},"from" : 0,"size" : 1}

elasticsql -p "SELECT * FROM my_table m WHERE m.id > 3"

{
  "query": {
    "bool": {
      "must": [
        {
          "range": {
            "m.id": {
              "gt": "3"
            }
          }
        }
      ]
    }
  },
  "from": 0,
  "size": 1
}

Install

go get -u github.com/mbdeveci/elasticsql

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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