View Source Ch.Query (Ch v0.2.6)

Query struct wrapping the SQL statement.

Summary

Types

@type command() ::
  :watch
  | :use
  | :truncate
  | :set
  | :exchange
  | :rename
  | :optimize
  | :kill
  | :exists
  | :drop
  | :detach
  | :describe
  | :check
  | :attach
  | :revoke
  | :explain
  | :grant
  | :select
  | :show
  | :system
  | :delete
  | :alter
  | :create
  | :insert
  | :select
@type t() :: %Ch.Query{
  command: command(),
  decode: boolean(),
  encode: boolean(),
  statement: iodata()
}