feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s
Build and publish container images / images (push) Failing after 12m29s
This commit is contained in:
1 parent
96065d1e89
commit
0ba1dcfef0
243 files changed
+21441
-3090
No files matched your search
@@ -15,6 +15,15 @@ const (
|
||||
SearchExcerptTotalBytes = mestionora.SearchExcerptTotalBytes
|
||||
)
|
||||
|
||||
// SearchProfile is a capability, not a user preference. Clients must not
|
||||
// mistake the initial native metadata search for a full-text index.
|
||||
func (s *Store) SearchProfile() string {
|
||||
if s.sqlBackend == storePostgreSQL {
|
||||
return "metadata-only"
|
||||
}
|
||||
return "fulltext"
|
||||
}
|
||||
|
||||
// SearchPathsInDomain is the legacy trusted-caller entry point. HTTP callers
|
||||
// must pass their request policy to the filtered APIs; there is no implicit
|
||||
// allow-all entry point in Mestionora itself.
|
||||
@@ -23,13 +32,19 @@ func (s *Store) SearchPathsInDomain(domainUUID, scope, query string, limit int)
|
||||
}
|
||||
|
||||
func (s *Store) SearchPathsInDomainFiltered(ctx context.Context, domainUUID, scope, query string, limit int, allowed func(string) bool) ([]SearchResult, error) {
|
||||
return mestionora.NewSQLite(s.DB).SearchPathsInDomainFiltered(ctx, domainUUID, scope, query, limit, allowed)
|
||||
return s.SearchPathsInDomainWithOptions(ctx, domainUUID, scope, query, limit, allowed, SearchOptions{})
|
||||
}
|
||||
|
||||
func (s *Store) SearchPathsInDomainWithOptions(ctx context.Context, domainUUID, scope, query string, limit int, allowed func(string) bool, options SearchOptions) ([]SearchResult, error) {
|
||||
if s.sqlBackend == storePostgreSQL {
|
||||
return mestionora.NewPostgreSQL(s.DB).SearchPathsInDomainWithOptions(ctx, domainUUID, scope, query, limit, allowed, options)
|
||||
}
|
||||
return mestionora.NewSQLite(s.DB).SearchPathsInDomainWithOptions(ctx, domainUUID, scope, query, limit, allowed, options)
|
||||
}
|
||||
|
||||
func (s *Store) SearchPathSuggestionsInDomain(ctx context.Context, domainUUID, scope, query string, limit int, allowed func(string) bool) ([]PathSuggestion, error) {
|
||||
if s.sqlBackend == storePostgreSQL {
|
||||
return mestionora.NewPostgreSQL(s.DB).SearchPathSuggestionsInDomain(ctx, domainUUID, scope, query, limit, allowed)
|
||||
}
|
||||
return mestionora.NewSQLite(s.DB).SearchPathSuggestionsInDomain(ctx, domainUUID, scope, query, limit, allowed)
|
||||
}
|
||||
Reference in new issue
Block a user