View Source Mix.Flowy.Query (Flowy v0.1.4)

Generates a Flowy query module.

Summary

Functions

Builds a query struct from the given arguments.

Check if the query module already exists.

Check if the query test module already exists.

Types

@type t() :: %Mix.Flowy.Query{
  alias: atom(),
  base_module: atom(),
  context_app: atom(),
  file: String.t(),
  fixture_file: String.t(),
  fixture_setup_file: String.t(),
  generate?: boolean(),
  human_plural: String.t(),
  human_singular: String.t(),
  module: atom(),
  opts: Keyword.t(),
  plural: String.t(),
  schema: Mix.Flowy.Schema.t(),
  singular: String.t(),
  test_file: String.t()
}

Functions

@spec new(schema :: Mix.Flowy.Schema.t(), opts :: keyword()) :: t()

Builds a query struct from the given arguments.

@spec pre_existing?(t()) :: boolean()

Check if the query module already exists.

Link to this function

pre_existing_tests?(query)

View Source
@spec pre_existing_tests?(t()) :: boolean()

Check if the query test module already exists.