Instream v1.0.0 Instream.Database behaviour View Source

Defines a database.

Usage

defmodule MyDatabase do
  use Instream.Database

  database do
    name "my_database"
  end
end

Metadata

The metadata of a database (e.g. the name) can be retrieved using the __meta__/1 method.

Link to this section Summary

Functions

Defines the database.

Defines the name of the database.

Callbacks

Provides metadata access for a database.

Link to this section Functions

Link to this macro

database(list)

View Source (macro)

Defines the database.

Defines the name of the database.

Link to this section Callbacks

Specs

__meta__(atom()) :: any()

Provides metadata access for a database.

Available information

  • :name - the name of the database