This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# | |
# The one extension adds Dataset#one which performs a LIMIT(2) query and will raise a | |
# Sequel::NoMatchingRow if exactly one row is not returned. | |
module Sequel | |
module One | |
MSG = 'Expected query to produce exactly 1 row but received %<rows>s.' | |
def one |