dataclips

package module
v0.0.0-...-7beccbf Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 9 Imported by: 0

README

Dataclips

A tiny, embeddable UI for exposing a SQL console from a Go application.

Heavily inspired by Blazer and Heroku Dataclips.

Documentation

Index

Constants

View Source
const (
	MySQL    = "mysql"
	Postgres = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB               *sql.DB
	Driver           Driver
	PlaceholderQuery string
}

type Driver

type Driver string

type Server

type Server struct {
	PlaceholderQuery string
	// contains filtered or unexported fields
}

func New

func New(c Config) (*Server, error)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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