Instream v0.20.0 Instream.Database behaviour View Source
Defines a database.
Usage
defmodule MyDatabase
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
Callbacks
Provides metadata access for a database.
Link to this section Functions
Link to this macro
database(list) View Source (macro)
Defines the database.
Link to this macro
name(dbname) View Source (macro)
Defines the name of the database.
Link to this section Callbacks
Link to this callback
__meta__(atom) View Source
Provides metadata access for a database.
Available information
:name
- the name of the database