module generic.column_operator

Inheritance diagram of pysqllike.generic.column_operator

Short summary

module pysqllike.generic.column_operator

Creates custom classes to interpret Python expression as column operations.

source on GitHub

Classes

class

truncated documentation

ColumnOperator

defines an operation between two columns

OperatorAdd

defines the addition

OperatorAnd

defines and

OperatorDiv

defines the division

OperatorDivN

defines the division //

OperatorEq

defines ==

OperatorFunc

defines a function call

OperatorGe

defines >=

OperatorGt

defines >

OperatorId

defines a constant

OperatorLe

defines <=

OperatorLt

defines <

OperatorMod

defines the operator mod

OperatorMul

defines the multiplication

OperatorNe

defines !=

OperatorNot

defines not

OperatorOr

defines or

OperatorPow

defines the power

OperatorSub

defines the subtraction

Methods

method

truncated documentation

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__call__

returns the results of this operation between a list of columns

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

constructor

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__init__

initiates the operator

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

__str__

usual

Documentation

Creates custom classes to interpret Python expression as column operations.

source on GitHub

class pysqllike.generic.column_operator.ColumnOperator

Bases: object

defines an operation between two columns

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__init__()

initiates the operator

Parameters:

name – name of the column

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorAdd

Bases: ColumnOperator

defines the addition

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorAnd

Bases: ColumnOperator

defines and

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorDiv

Bases: ColumnOperator

defines the division

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorDivN

Bases: ColumnOperator

defines the division //

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorEq

Bases: ColumnOperator

defines ==

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorFunc(func)

Bases: ColumnOperator

defines a function call

source on GitHub

constructor

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__init__(func)

constructor

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorGe

Bases: ColumnOperator

defines >=

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorGt

Bases: ColumnOperator

defines >

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorId

Bases: ColumnOperator

defines a constant

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorLe

Bases: ColumnOperator

defines <=

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorLt

Bases: ColumnOperator

defines <

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorMod

Bases: ColumnOperator

defines the operator mod

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorMul

Bases: ColumnOperator

defines the multiplication

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorNe

Bases: ColumnOperator

defines !=

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorNot

Bases: ColumnOperator

defines not

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorOr

Bases: ColumnOperator

defines or

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorPow

Bases: ColumnOperator

defines the power

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub

class pysqllike.generic.column_operator.OperatorSub

Bases: ColumnOperator

defines the subtraction

source on GitHub

initiates the operator

Parameters:

name – name of the column

source on GitHub

__call__(columns)

returns the results of this operation between a list of columns

source on GitHub

__str__()

usual

source on GitHub