19 lines
947 B
Go
19 lines
947 B
Go
package store
|
|
|
|
import "errors"
|
|
|
|
var ErrBackendFeatureUnavailable = errors.New("feature is disabled for this database backend")
|
|
|
|
// The built-in editor uses the domain-aware revision/CAS pipeline. Hosted
|
|
// editor session transactions are retained but not enabled on native storage.
|
|
func (s *Store) SupportsHostedEditors() bool { return s.sqlBackend == storeSQLite }
|
|
|
|
// These are immutable backend restrictions, not user-controlled extension
|
|
// switches. All maintenance/delivery entry points must enforce them as well.
|
|
func (s *Store) SupportsNotificationPush() bool { return s.sqlBackend == storeSQLite }
|
|
func (s *Store) SupportsZombieGC() bool { return s.sqlBackend == storeSQLite }
|
|
|
|
// Native log retention remains disabled until bounded policy cleanup is ported.
|
|
// Logs are retained, not discarded or silently subjected to another policy.
|
|
func (s *Store) SupportsEventHistoryMaintenance() bool { return s.sqlBackend == storeSQLite }
|