sqlite-gobroem

command module
v0.0.0-...-31f36ab Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 6 Imported by: 0

README

sqlite-gobroem

sqlite-gobroem is a Golang embedded web-based SQLite database browser.

Installing

Use go get to install the latest version of the library:

$ go get -u github.com/bakaoh/sqlite-gobroem

Include Gobroem in your application:

import "github.com/bakaoh/sqlite-gobroem/gobroem"

Standalone

Use go build to build Gobroem:

$ cd $GOPATH/src/github.com/bakaoh/sqlite-gobroem/gobroem
$ go build .

Run Gobroem:

$ ./sqlite-gobroem -h

Usage of ./sqlite-gobroem:
  -bind string
    	HTTP server host (default "localhost")
  -db string
    	SQLite database file (default "test/test.db")
  -listen uint
    	HTTP server listen port (default 8000)

$ ./sqlite-gobroem

Open browser http://localhost:8000/

Embedded

Initialize the API controller:

api, err := gobroem.NewAPI("path to sqlite db file")
if err != nil {
    log.Fatal("can not open db", err)
}

Register the API handler:

http.Handle("/browser/", api.Handler("/browser/"))

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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