/
githubmirror
/
goose
Обзор
Документация
Войти
/
githubmirror
/
goose
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
database/doc.go
14 строк
615 B
Michael Fridman
feat(experimental): add package database with Store interface (#623)
27 окт 2023, 03:40
Не верифицирован
27 окт 2023, 03:40
4ec43df
Код
Авторство
О чём код?
// Package database defines a generic [Store] interface for goose to use when interacting with the // database. It is meant to be generic and not tied to any specific database technology. // // At a high level, a [Store] is responsible for: // - Creating a version table // - Inserting and deleting a version // - Getting a specific version // - Listing all applied versions // // Use the [NewStore] function to create a [Store] for one of the supported dialects. // // For more advanced use cases, it's possible to implement a custom [Store] for a database that // goose does not support. package database