package sql
- Alphabetic
- By Inheritance
- sql
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class ArrayDeref[T[_[_]]](expr: T[Sql]) extends DerefType[T] with Product with Serializable
- final case class ArrayLiteral[A] extends Sql[A] with Product with Serializable
- sealed abstract class BinaryOperator extends slamdata.Predef.Product with slamdata.Predef.Serializable
- final case class Binop[A] extends Sql[A] with Product with Serializable
- final case class Block[T](expr: T, defs: slamdata.Predef.List[FunctionDecl[T]]) extends Product with Serializable
- final case class BoolLiteral[A] extends Sql[A] with Product with Serializable
- final case class CIName(value: slamdata.Predef.String) extends Product with Serializable
- final case class Case[A](cond: A, expr: A) extends Product with Serializable
- sealed abstract class DerefType[T[_[_]]] extends slamdata.Predef.Product with slamdata.Predef.Serializable
- final case class DimChange[T[_[_]]](unop: UnaryOperator) extends DerefType[T] with Product with Serializable
- implicit class ExprOps[T[_[_]]] extends AnyRef
- final case class ExprRelationAST[A](expr: A, alias: slamdata.Predef.Option[slamdata.Predef.String]) extends NamedRelation[A] with Product with Serializable
- type FUPath = Path[_, File, Unsandboxed]
- final case class FloatLiteral[A] extends Sql[A] with Product with Serializable
- final case class FunctionDecl[BODY](name: CIName, args: slamdata.Predef.List[CIName], body: BODY) extends Statement[BODY] with Product with Serializable
- final case class GenericParsingError(message: slamdata.Predef.String) extends ParsingError with Product with Serializable
- final case class GroupBy[A](keys: slamdata.Predef.List[A], having: slamdata.Predef.Option[A]) extends Product with Serializable
- final case class Ident[A] extends Sql[A] with Product with Serializable
-
final
case class
IdentRelationAST[A](name: slamdata.Predef.String, alias: slamdata.Predef.Option[slamdata.Predef.String]) extends NamedRelation[A] with Product with Serializable
IdentRelationAST allows us to reference a let binding in a relation (i.e.
IdentRelationAST allows us to reference a let binding in a relation (i.e. table) context. ExprF.IdentF allows us to reference a let binding in expression context. Ideally we can unify these two contexts, providing a single way to reference a let binding.
- final case class Import[BODY](path: Path[slamdata.Predef.Any, Dir, Unsandboxed]) extends Statement[BODY] with Product with Serializable
- final case class IntLiteral[A] extends Sql[A] with Product with Serializable
- final case class InvokeFunction[A] extends Sql[A] with Product with Serializable
- sealed abstract class IsDistinct extends slamdata.Predef.Product with slamdata.Predef.Serializable
- sealed abstract class JoinDir extends AnyRef
- final case class JoinRelation[A](left: SqlRelation[A], right: SqlRelation[A], tpe: JoinType, clause: A) extends SqlRelation[A] with Product with Serializable
- final case class Let[A](ident: CIName, bindTo: A, in: A) extends Sql[A] with Product with Serializable
- final case class MapDeref[T[_[_]]](expr: T[Sql]) extends DerefType[T] with Product with Serializable
-
final
case class
MapLiteral[A] extends Sql[A] with Product with Serializable
Can’t be a Map, because we need to arbitrarily transform the key
- final case class Match[A] extends Sql[A] with Product with Serializable
- sealed abstract class NamedRelation[A] extends SqlRelation[A]
- final case class NullLiteral[A] extends Sql[A] with Product with Serializable
- final case class OrderBy[A](keys: NonEmptyList[(OrderType, A)]) extends Product with Serializable
- sealed abstract class OrderType extends slamdata.Predef.Product with slamdata.Predef.Serializable
- sealed abstract class ParsingError extends AnyRef
- final case class ParsingPathError(error: PathError) extends ParsingError with Product with Serializable
- final case class Proj[A](expr: A, alias: slamdata.Predef.Option[slamdata.Predef.String]) extends Product with Serializable
- final case class Query(value: slamdata.Predef.String) extends Product with Serializable
- final case class ScopedExpr[T](expr: T, scope: slamdata.Predef.List[Statement[T]]) extends Product with Serializable
- final case class Select[A] extends Sql[A] with Product with Serializable
- final case class SetLiteral[A] extends Sql[A] with Product with Serializable
-
final
case class
Splice[A] extends Sql[A] with Product with Serializable
Represents the wildcard in a select projection For instance: "select foo.* from example" => ...(Splice(Some(Ident("foo"))))...
Represents the wildcard in a select projection For instance: "select foo.* from example" => ...(Splice(Some(Ident("foo"))))... "select * from example" => ...(Splice(None))...
- sealed abstract class Sql[A] extends AnyRef
- sealed abstract class SqlRelation[A] extends slamdata.Predef.Product with slamdata.Predef.Serializable
- implicit class SqlStringContext extends AnyRef
- sealed abstract class Statement[BODY] extends slamdata.Predef.Product with slamdata.Predef.Serializable
- implicit class StatementsOps[A] extends AnyRef
- final case class StringLiteral[A] extends Sql[A] with Product with Serializable
- final case class Switch[A] extends Sql[A] with Product with Serializable
- final case class TableRelationAST[A](tablePath: FUPath, alias: slamdata.Predef.Option[slamdata.Predef.String]) extends NamedRelation[A] with Product with Serializable
- sealed abstract class UnaryOperator extends slamdata.Predef.Product with slamdata.Predef.Serializable
- final case class Unop[A] extends Sql[A] with Product with Serializable
- final case class Vari[A] extends Sql[A] with Product with Serializable
- final case class VariRelationAST[A](vari: Vari[A], alias: slamdata.Predef.Option[slamdata.Predef.String]) extends NamedRelation[A] with Product with Serializable
Value Members
- def CrossRelation[T](left: SqlRelation[T], right: SqlRelation[T])(implicit T: Aux[T, Sql]): JoinRelation[T]
- def arrayLiteral[A]: Prism[Sql[A], slamdata.Predef.List[A]]
- def binop[A]: Prism[Sql[A], (A, A, BinaryOperator)]
- def boolLiteral[A]: Prism[Sql[A], slamdata.Predef.Boolean]
- val fixParser: SQLParser[Fix]
- def floatLiteral[A]: Prism[Sql[A], slamdata.Predef.Double]
- def ident[A]: Prism[Sql[A], slamdata.Predef.String]
- def intLiteral[A]: Prism[Sql[A], slamdata.Predef.Long]
- def invokeFunction[A]: Prism[Sql[A], (CIName, slamdata.Predef.List[A])]
- def let[A]: Prism[Sql[A], (CIName, A, A)]
- def mapLiteral[A]: Prism[Sql[A], slamdata.Predef.List[(A, A)]]
- def mapPathsMƒ[F[_]](f: (FUPath) ⇒ F[FUPath])(implicit arg0: Monad[F]): ~>[Sql, [A]F[Sql[A]]]
- def matc[A]: Prism[Sql[A], (A, slamdata.Predef.List[Case[A]], slamdata.Predef.Option[A])]
- def normalizeƒ[T](implicit T: Aux[T, Sql]): (Sql[T]) ⇒ slamdata.Predef.Option[Sql[T]]
- def nullLiteral[A]: Prism[Sql[A], slamdata.Predef.Unit]
- def parser[T[_[_]]](implicit arg0: BirecursiveT[T]): SQLParser[T]
- def pprint[T](sql: T)(implicit T: Aux[T, Sql]): slamdata.Predef.String
- def pprintRelation[T](r: SqlRelation[T])(implicit T: Aux[T, Sql]): slamdata.Predef.String
- def pprintƒ[T](implicit T: Aux[T, Sql]): (Sql[(T, slamdata.Predef.String)]) ⇒ slamdata.Predef.String
-
def
projectionName[T](expr: T, relationName: slamdata.Predef.Option[slamdata.Predef.String])(implicit T: Aux[T, Sql]): slamdata.Predef.Option[slamdata.Predef.String]
Returns the name of the expression when viewed as a projection (of the optional relation), if available.
- def projectionNames[T](projections: slamdata.Predef.List[Proj[T]], relName: slamdata.Predef.Option[slamdata.Predef.String])(implicit T: Aux[T, Sql]): \/[SemanticError, slamdata.Predef.List[(slamdata.Predef.String, T)]]
- def resolveImportsImpl[M[_], T[_[_]]](scopedExpr: ScopedExpr[T[Sql]], baseDir: ADir, retrieve: (ADir) ⇒ M[slamdata.Predef.List[Statement[T[Sql]]]])(implicit arg0: Monad[M], arg1: BirecursiveT[T]): EitherT[M, SemanticError, T[Sql]]
- def select[A]: Prism[Sql[A], (IsDistinct, slamdata.Predef.List[Proj[A]], slamdata.Predef.Option[SqlRelation[A]], slamdata.Predef.Option[A], slamdata.Predef.Option[GroupBy[A]], slamdata.Predef.Option[OrderBy[A]])]
- def setLiteral[A]: Prism[Sql[A], slamdata.Predef.List[A]]
- def splice[A]: Prism[Sql[A], slamdata.Predef.Option[A]]
- def stringLiteral[A]: Prism[Sql[A], slamdata.Predef.String]
- def switch[A]: Prism[Sql[A], (slamdata.Predef.List[Case[A]], slamdata.Predef.Option[A])]
-
def
traverseRelation[G[_], A, B](r: SqlRelation[A], f: (A) ⇒ G[B])(implicit G: Applicative[G]): G[SqlRelation[B]]
- Annotations
- @SuppressWarnings()
- def unop[A]: Prism[Sql[A], (A, UnaryOperator)]
- def vari[A]: Prism[Sql[A], slamdata.Predef.String]
- object ASC extends OrderType with Product with Serializable
- object And extends BinaryOperator with Product with Serializable
- object ArrayLiteral extends Serializable
- object BinaryOperator extends Serializable
- object Binop extends Serializable
- object Block extends Serializable
- object BoolLiteral extends Serializable
- object CIName extends Serializable
- object Case extends Serializable
- object Concat extends BinaryOperator with Product with Serializable
- object DESC extends OrderType with Product with Serializable
- object Distinct extends UnaryOperator with Product with Serializable
- object Div extends BinaryOperator with Product with Serializable
- object Eq extends BinaryOperator with Product with Serializable
- object Except extends BinaryOperator with Product with Serializable
- object Exists extends UnaryOperator with Product with Serializable
- object ExprRelationAST extends Serializable
- object FlattenArrayIndices extends UnaryOperator with Product with Serializable
- object FlattenArrayValues extends UnaryOperator with Product with Serializable
- object FlattenMapKeys extends UnaryOperator with Product with Serializable
- object FlattenMapValues extends UnaryOperator with Product with Serializable
- object FloatLiteral extends Serializable
- object FunctionDecl extends Serializable
- object Ge extends BinaryOperator with Product with Serializable
- object GroupBy extends Serializable
- object Gt extends BinaryOperator with Product with Serializable
- object Ident extends Serializable
- object IdentRelationAST extends Serializable
- object IfUndefined extends BinaryOperator with Product with Serializable
- object Import extends Serializable
- object In extends BinaryOperator with Product with Serializable
- object IndexDeref extends BinaryOperator with Product with Serializable
- object IntLiteral extends Serializable
- object Intersect extends BinaryOperator with Product with Serializable
- object IntersectAll extends BinaryOperator with Product with Serializable
- object InvokeFunction extends Serializable
- object IsDistinct extends Serializable
- object JoinDir
- object JoinRelation extends Serializable
- object KeyDeref extends BinaryOperator with Product with Serializable
- object Le extends BinaryOperator with Product with Serializable
- object Let extends Serializable
- object Limit extends BinaryOperator with Product with Serializable
- object Lt extends BinaryOperator with Product with Serializable
- object MapLiteral extends Serializable
- object Match extends Serializable
- object Minus extends BinaryOperator with Product with Serializable
- object Mod extends BinaryOperator with Product with Serializable
- object Mult extends BinaryOperator with Product with Serializable
- object Negative extends UnaryOperator with Product with Serializable
- object Neq extends BinaryOperator with Product with Serializable
- object Not extends UnaryOperator with Product with Serializable
- object NullLiteral extends Serializable
- object Offset extends BinaryOperator with Product with Serializable
- object Or extends BinaryOperator with Product with Serializable
- object OrderBy extends Serializable
- object OrderType extends Serializable
- object ParsingError
- object Plus extends BinaryOperator with Product with Serializable
- object Positive extends UnaryOperator with Product with Serializable
- object Pow extends BinaryOperator with Product with Serializable
- object Proj extends Serializable
- object Range extends BinaryOperator with Product with Serializable
- object Sample extends BinaryOperator with Product with Serializable
- object ScopedExpr extends Serializable
- object Select extends Serializable
- object SelectAll extends IsDistinct with Product with Serializable
- object SelectDistinct extends IsDistinct with Product with Serializable
- object SetLiteral extends Serializable
- object ShiftArrayIndices extends UnaryOperator with Product with Serializable
- object ShiftArrayValues extends UnaryOperator with Product with Serializable
- object ShiftMapKeys extends UnaryOperator with Product with Serializable
- object ShiftMapValues extends UnaryOperator with Product with Serializable
- object Splice extends Serializable
- object Sql
- object SqlInterpolator
- object SqlRelation extends Serializable
- object Statement extends Serializable
- object StringLiteral extends Serializable
- object Switch extends Serializable
- object TableRelationAST extends Serializable
- object UnaryOperator extends Serializable
- object Union extends BinaryOperator with Product with Serializable
- object UnionAll extends BinaryOperator with Product with Serializable
- object Unop extends Serializable
- object UnshiftArray extends UnaryOperator with Product with Serializable
- object UnshiftMap extends BinaryOperator with Product with Serializable
- object Vari extends Serializable
- object VariRelationAST extends Serializable