struct Crysda::ColNames

Overview

Struct which is passed to block and provide helpful methods which can be invoked to perform filtering

Defined in:

crysda/select.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(names : Array(String)) #

[View source]

Instance Method Detail

def =~(regex : String) #

[View source]
def =~(regex : Regex) #

[View source]
def [](from : String, to : String) #

[View source]
def [](range : Range(String | Nil, String | Nil)) #

[View source]
def all #

[View source]
def ends_with?(prefix : String) #

[View source]
def except(cols : Array(String)) #

[View source]
def except(*cols : String) #

normally, there should be no need for them. We just do positive selection and either use reject or select. BUT: verbs like gather still need to support negative selection Performs a negative selection by selecting all columns except the listed ones.


[View source]
def except(&selector : ColumnSelector) #

[View source]
def list_of(col_names : Array(String)) #

[View source]
def list_of(*col_names : String) #

[View source]
def matches(regex : String) #

[View source]
def matches(regex : Regex) #

[View source]
def names : Array(String) #

[View source]
def starts_with?(prefix : String) #

[View source]