Package gavo :: Package svcs :: Module pql :: Class PQLShellPatternPar
[frames] | no frames]

Class PQLShellPatternPar

source code

object --+    
         |    
    PQLPar --+
             |
            PQLShellPatternPar
Known Subclasses:

a PQL shell pattern parameter.

These are posix shell patterns, where no PQL metacharacters are evaluated at all.

Nested Classes

Inherited from PQLPar: rangeClass, valParser

Instance Methods
 
getSQL(self, colName, sqlPars)
returns an RE-based query equivalent to the input shell pattern.
source code
 
covers(self, value)
returns true if value is within the ranges specified by the PQL expression.
source code

Inherited from PQLPar: __eq__, __init__, __repr__, __str__, getValuesAsSet

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods
 
fromLiteral(cls, val, destName)
returns a parsed representation of a literal in PQL range-list syntax.
source code
Static Methods

Inherited from PQLPar: stepParser

Class Variables

Inherited from PQLPar: nullvalue

Properties

Inherited from object: __class__

Method Details

fromLiteral(cls, val, destName)
Class Method

source code 

returns a parsed representation of a literal in PQL range-list syntax.

val is a string containing the PQL expression, destName is a name to be used for the LiteralParseErrors the function raises when there are syntax errors in val.

Overrides: PQLPar.fromLiteral
(inherited documentation)

getSQL(self, colName, sqlPars)

source code 

returns an RE-based query equivalent to the input shell pattern.

Overrides: PQLPar.getSQL

covers(self, value)

source code 

returns true if value is within the ranges specified by the PQL expression.

value must be type-true, i.e., you are responsible for converting it into the type the range are in.

Overrides: PQLPar.covers
(inherited documentation)