Class: Torque::PostgreSQL::Adapter::OID::Lquery

Inherits:
Ltree
  • Object
show all
Defined in:
lib/torque/postgresql/adapter/oid/lquery.rb,
sig/torque/postgresql/adapter/oid/lquery.rbs

Overview

Same as a path, but the items are the pure parts of a pattern: :any for a star, a Range for a quantified star and an Array for a group of alternatives. Everything else is a label, written as it appears in SQL

Constant Summary collapse

STAR =

Returns:

  • (Regexp)
/\A\*\{(?<min>\d+)?(?<comma>,)?(?<max>\d+)?\}\z/

Instance Method Summary collapse

Methods inherited from Ltree

#==, #cast, #changed_in_place?, #deserialize, #hash, #items_for, #serialize, #type_cast_for_schema

Instance Method Details

#type ⇒ :lquery

Returns:

  • (:lquery)


15
16
17
# File 'lib/torque/postgresql/adapter/oid/lquery.rb', line 15

def type
  :lquery
end