Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TruePredicate = Predicate{ True: true, }
TruePredicate is a predicate wich return always true
Functions ¶
func TrueOperator ¶
TrueOperator always returns true
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
Attribute is a named column of a relation AKA Field AKA Column
type Engine ¶
Engine is the root struct of RamSQL server
type Predicate ¶
Predicate evaluate if a condition is valid with 2 values and an operator on this 2 values
type PredicateLinker ¶
PredicateLinker referes to AND and OR operators.
type Relation ¶
Relation is a table with column and rows AKA File
func NewRelation ¶
NewRelation initializes a new Relation struct
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is defined by a name and attributes A table with data is called a Relation
func (*Table) AddAttribute ¶
AddAttribute is used by CREATE TABLE and ALTER TABLE Want to check that name isn't already taken
Source Files ¶
Click to show internal directories.
Click to hide internal directories.