Alchemy Table v0.1.3 AlchemyTable.Table View Source

Link to this section Summary

Functions

Defines a column inside a Bigtable.Schema.family/2 definition

Defines a column family inside a Bigtable.Schema.row/2 definition

Link to this section Functions

Link to this macro

column(key, value) View Source (macro)

Defines a column inside a Bigtable.Schema.family/2 definition.

The first argument is an atom that will define the column's name.

The second argument defines the column's type and should be one of:

  • :integer
  • :float
  • :boolean
  • :string
  • :map
  • :list

If the column value is defined as either :map or :list, the value will be JSON encoded during mutations and decoded during reads.

Link to this macro

family(name, list) View Source (macro)

Defines a column family inside a Bigtable.Schema.row/2 definition.

The name of the family should be provided to the macro as an atom.

The block of the macro should only contain Bigtable.Schema.column/2 definitions.

Link to this macro

promoted(key, value) View Source (macro)

Link to this macro

table(name, opts, list) View Source (macro)