github ↗
docs menu

Module Talon.Col

Column handles.

A handle names a column and the kind its values read as. It is bound to no table: a verb binds it to its input when it is applied, so a module of handles serves as a schema. A handle of kind k binds a column whose type k reads (Kind.provably_equal); a missing column, or one of another kind, is a problem the verb reports. No handle binds an extension column: Ext.col does.

#val v : 'a Kind.t -> string -> ('a, Expr.row) Expr.t

v k name is the column name read as k: v (Kind.list Kind.int) "tokens".

#val bool : string -> (bool, Expr.row) Expr.t

bool name is v Kind.bool name.

#val int : string -> (int, Expr.row) Expr.t

int name is v Kind.int name, which binds every integer type.

#val float : string -> (float, Expr.row) Expr.t

float name is v Kind.float name, which binds every float type.

#val string : string -> (string, Expr.row) Expr.t

string name is v Kind.string name, which binds string and categorical types.

#val binary : string -> (Binary.t, Expr.row) Expr.t

binary name is v Kind.binary name.

#val date : string -> (Time.date, Expr.row) Expr.t

date name is v Kind.date name.

#val instant : string -> (Time.instant, Expr.row) Expr.t

instant name is v Kind.instant name, which binds every datetime type of instants.

#val wall : string -> (Time.wall, Expr.row) Expr.t

wall name is v Kind.wall name, which binds every datetime type of wall clocks.

#val span : string -> (Time.span, Expr.row) Expr.t

span name is v Kind.span name, which binds every duration and clock type.