Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::ResultSet::ValidationState

DESCRIPTION

Interface to queries involving validation states.

METHODS

latest_completed_state_per_plan

Generates a resultset that returns the single most recent *completed* validation_state entry per validation plan (using whatever other search criteria are already in the resultset).

The query will be closed off as a subselect (that additional chaining will SELECT FROM), so it makes a difference whether you add things to the resultset before or after calling this method.

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.