sqlite

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sqlite wraps github.com/mattn/go-sqlite3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func New

func New() *Adapter

func (*Adapter) CanCreateDatabase

func (a *Adapter) CanCreateDatabase() bool

func (*Adapter) Defaults

func (a *Adapter) Defaults() db.AdapterDefaults

func (*Adapter) DriverName

func (a *Adapter) DriverName() string

func (*Adapter) FormatDSN

func (a *Adapter) FormatDSN(c config.DatabaseConfig) (string, error)

func (*Adapter) GetLogger

func (a *Adapter) GetLogger() *dlog.Logger

func (*Adapter) LoggerIdentity

func (a *Adapter) LoggerIdentity(justCallMe func() dlog.Identity) dlog.Identity

func (*Adapter) Placeholders

func (a *Adapter) Placeholders(count int) string

based on https://github.com/Masterminds/squirrel/blob/v1/placeholder.go

func (*Adapter) SetLogger

func (a *Adapter) SetLogger(logger *dlog.Logger)

type Default

type Default struct {
}

func (*Default) DockerImage

func (c *Default) DockerImage() string

FIXME: there is not official docker image for sqlite, and we need to use docker for sqlite3 shell

func (*Default) NativeShell

func (c *Default) NativeShell() string

func (*Default) Port

func (c *Default) Port() int

Jump to

Keyboard shortcuts

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