Skip to content

A Pure Go Elasticsearch driver for Go's database/sql package

License

Notifications You must be signed in to change notification settings

jhw0604/elasticsearch-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Pure Go Elasticsearch driver for Go's database/sql package

It is writen Pure Go run via elasticsearch rest api /_xpack/sql So... only support SELECT at this time

Install

Install with

go get github.com/jhw0604/elasticsearch-sql

Connection Parameters and DSN

http[s]://[<encoding url base64 id:password>@]address:port

ID and Password connect with ":" and encoding base64 URL.

import (
	"database/sql"
	_ "github.com/jhw0604/elasticsearch-sql"
)


db, err := sql.Open("elasticsearch", "http://localhost:9200")
import (
	"database/sql"
	_ "github.com/jhw0604/elasticsearch-sql"
)


db, err := sql.Open("elasticsearch", "http://ZWxhc3RpYzpwYXNzd29yZA==@localhost:9200")

About

A Pure Go Elasticsearch driver for Go's database/sql package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages