github.com/pjdufour-truss/pop@v4.11.2-0.20190705085848-4c90b0ff4d5a+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 }