Module: Inferno::Repositories

Defined in:
lib/inferno/repositories.rb,
lib/inferno/repositories/tags.rb,
lib/inferno/repositories/tests.rb,
lib/inferno/repositories/headers.rb,
lib/inferno/repositories/presets.rb,
lib/inferno/repositories/results.rb,
lib/inferno/repositories/messages.rb,
lib/inferno/repositories/requests.rb,
lib/inferno/repositories/test_runs.rb,
lib/inferno/repositories/repository.rb,
lib/inferno/repositories/test_groups.rb,
lib/inferno/repositories/test_suites.rb,
lib/inferno/repositories/session_data.rb,
lib/inferno/repositories/test_sessions.rb,
lib/inferno/repositories/validator_sessions.rb,
lib/inferno/repositories/in_memory_repository.rb,
lib/inferno/repositories/validate_runnable_reference.rb

Overview

Repositories provide an abstraction layer for dealing with entity persistence. All code for interacting with the database lives in repositories. The rest of the codebase interacts with the database through a public api provided by various repositories.

Naming Convention: A repository should be named the plural version of the entity name. For example:

  • TestSessions is the repsitory for the TestSession entity
  • TestGroups is the repository for the TestGroup entity

Defined Under Namespace

Modules: ValidateRunnableReference Classes: Headers, InMemoryRepository, Messages, Presets, Repository, Requests, Results, SessionData, Tags, TestGroups, TestRuns, TestSessions, TestSuites, Tests, ValidatorSessions