Documentation
¶
Index ¶
- Variables
- type Namespace
- type Store
- func (s *Store) AcquireInstance(ctx context.Context) error
- func (s *Store) CheckImportPermissions(ctx context.Context, ready bool) error
- func (s *Store) CheckSchema(ctx context.Context) (bool, error)
- func (s *Store) Close()
- func (s *Store) InstanceLost() <-chan struct{}
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) Ping(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInstanceBusy = errors.New("другой экземпляр qag уже использует эту БД")
View Source
var ErrMigration = errors.New("не удалось подготовить схему PostgreSQL; проверьте доступность БД, права и совместимость версии приложения")
View Source
var ErrSchemaVersion = errors.New("схема PostgreSQL несовместима с этой версией qag")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
Pool *pgxpool.Pool
Namespace dbscope.Namespace
// contains filtered or unexported fields
}
func (*Store) CheckImportPermissions ¶
CheckImportPermissions is read-only, so dry-run never prepares schemas.
func (*Store) CheckSchema ¶
CheckSchema is read-only, including when the target has never been migrated.
func (*Store) InstanceLost ¶
func (s *Store) InstanceLost() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.