Table of Contents

Module: sqlsem Zope-2.2.1-src/lib/python/Products/ZGadflyDA/gadfly/sqlsem.py

sql semantics

Imported modules   
import gfdb0
import sqlmod
import sys
import traceback
Functions   
NamedSort
PositionedSort
aggregate
deserialize
dump_single_column
dynamic_binding
no_ints_nulls
order_tuples
orderbind_sequence
relbind_sequence
serialize
  NamedSort 
NamedSort ( name,  ord )

  PositionedSort 
PositionedSort ( num,  ord )

  aggregate 
aggregate ( assignments,  exprlist )

aggregates are a assignments with special attribute None > list of subtuple

Exceptions   
ValueError
  deserialize 
deserialize ( description )

simple protocol for generating a marshallable ob

  dump_single_column 
dump_single_column ( assigns,  att )

dump single column assignment

  dynamic_binding 
dynamic_binding ( ndynamic,  dynamic )

create bindings from dynamic tuple for ndynamic parameters if a tuple is given create one if a list is given create many

Exceptions   
TypeError
ValueError
  no_ints_nulls 
no_ints_nulls ( list )

in place remove all ints, Nones from a list (for null handling)

  order_tuples 
order_tuples ( order_list,  tuples )

Exceptions   
ValueError
  orderbind_sequence 
orderbind_sequence ( order_list,  order )

  relbind_sequence 
relbind_sequence (
        order_list,
        dict,
        db,
        )

  serialize 
serialize ( ob )

dual of deserialize.

Exceptions   
ValueError
Classes   
Average

stuff for aggregation

BTPredicate

superclass for bound tuple predicates.

BTand_pred
BTnot_pred
BTor_pred
BetweenPredicate

e1 BETWEEN e2 AND e3

BoundAddition

promised addition.

BoundAttribute

bound attribute: initialize with relname=None if

BoundDivision

promised division.

BoundExpression

superclass for all bound expressions.

BoundMinus
BoundMultiplication

promised multiplication.

BoundSubtraction

promised subtraction.

BoundTuple
Constant
Count
DescExpr

special wrapper used only for order by descending

Except
ExistsPred

EXISTS subquery.

HashJoiner
InLits

expr IN literals, support dynamic bindings.

Intersect
LessEqPred
LessPred
Maximum
Median
Minimum
NontrivialEqPred

equation of nontrivial expressions.

NumberedColumn

order by column number

OrderExpr

order by expression.

Parse_Context

contextual information for parsing

QuantEQ

Quantified equal any predicate

QuantGE

Quantified greater equal any predicate

QuantGT

Quantified greater than any predicate

QuantLE

Quantified less equal any predicate

QuantLT

Quantified less than any predicate

QuantNE

Quantified not equal any predicate

Selector

For implementing, eg the SQL SELECT statement.

SimpleColumn

a simple column name for application to a list of tuples

SimpleRecursive

Simple Recursive structure, only requires initargs

SubQueryExpression

sub query expression (subq), must eval to single column, single value

Sum
TupleCollector

Translate a sequence of assignments to simple tuples.

Union

union clause.

descOb

special wrapper only used for sorting in descending order


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6