github.com/duskeagle/pop@v4.10.1-0.20190417200916-92f2b794aab5+incompatible/dialect.go (about)

     1  package pop
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/gobuffalo/fizz"
     7  	"github.com/gobuffalo/pop/columns"
     8  )
     9  
    10  type dialect interface {
    11  	Name() string
    12  	URL() string
    13  	MigrationURL() string
    14  	Details() *ConnectionDetails
    15  	TranslateSQL(string) string
    16  	Create(store, *Model, columns.Columns) error
    17  	Update(store, *Model, columns.Columns) error
    18  	Destroy(store, *Model) error
    19  	SelectOne(store, *Model, Query) error
    20  	SelectMany(store, *Model, Query) error
    21  	CreateDB() error
    22  	DropDB() error
    23  	DumpSchema(io.Writer) error
    24  	LoadSchema(io.Reader) error
    25  	FizzTranslator() fizz.Translator
    26  	Lock(func() error) error
    27  	TruncateAll(*Connection) error
    28  	Quote(key string) string
    29  }
    30  
    31  type afterOpenable interface {
    32  	AfterOpen(*Connection) error
    33  }