Skip to content

mbdeveci/elasticsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages