Current section

Files

Jump to
cake src cake@query@from.erl
Raw

src/cake@query@from.erl

-module(cake@query@from).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([table/1, sub_query/2]).
-spec table(binary()) -> cake@internal@query:from().
table(Tbl_nm) ->
_pipe = Tbl_nm,
{from_table, _pipe}.
-spec sub_query(cake@internal@query:'query'(), binary()) -> cake@internal@query:from().
sub_query(Qry, Als) ->
_pipe = Qry,
{from_sub_query, _pipe, Als}.