Sha256: 90a7575988a766b44a3fe0809963c0cec4adc3abbc7b25e211d36678cf3edbd2
Contents?: true
Size: 1009 Bytes
Versions: 6
Compression:
Stored size: 1009 Bytes
Contents
# frozen_string_literal: true require 'valkyrie/persistence/postgres/persister' require 'valkyrie/persistence/postgres/query_service' module Valkyrie::Persistence::Postgres # Metadata Adapter for Postgres Adapter. # # This adapter uses ActiveRecord to persist resources in a JSON-B column named # `metadata`. This requires setting up a database. # # @see https://github.com/samvera-labs/valkyrie/wiki/Set-up-Valkyrie-database-in-a-Rails-Application class MetadataAdapter # @return [Class] {Valkyrie::Persistence::Postgres::Persister} def persister Valkyrie::Persistence::Postgres::Persister.new(adapter: self) end # @return [Class] {Valkyrie::Persistence::Postgres::QueryService} def query_service @query_service ||= Valkyrie::Persistence::Postgres::QueryService.new(adapter: self) end # @return [Class] {Valkyrie::Persistence::Postgres::ResourceFactory} def resource_factory Valkyrie::Persistence::Postgres::ResourceFactory end end end
Version data entries
6 entries across 6 versions & 1 rubygems