/
githubmirror
/
pop
Обзор
Документация
Войти
/
githubmirror
/
pop
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
dialect.go
48 строк
999 B
Yonghwan SO
made to pass connection instead of copying store
11 дек 2022, 19:30
Не верифицирован
11 дек 2022, 19:30
6f41368
Код
Авторство
О чём код?
package pop import ( "io" "github.com/gobuffalo/fizz" "github.com/gobuffalo/pop/v6/columns" ) type crudable interface { SelectOne(*Connection, *Model, Query) error SelectMany(*Connection, *Model, Query) error Create(*Connection, *Model, columns.Columns) error Update(*Connection, *Model, columns.Columns) error UpdateQuery(*Connection, *Model, columns.Columns, Query) (int64, error) Destroy(*Connection, *Model) error Delete(*Connection, *Model, Query) error } type fizzable interface { FizzTranslator() fizz.Translator } type quotable interface { Quote(key string) string } type dialect interface { crudable fizzable quotable Name() string DefaultDriver() string URL() string MigrationURL() string Details() *ConnectionDetails TranslateSQL(string) string CreateDB() error DropDB() error DumpSchema(io.Writer) error LoadSchema(io.Reader) error Lock(func() error) error TruncateAll(*Connection) error } type afterOpenable interface { AfterOpen(*Connection) error }