Packages

Plsm generates Ecto models based on existing database tables and populates the fields of the model.

Current section

Files

Jump to
plsm lib database database.ex
Raw

lib/database/database.ex

defprotocol Plsm.Database do
@doc """
Create a database struct that implements the Plsm.Database protocol.
"""
def create(db, configs)
@doc """
Connect to the given database
"""
def connect(db)
@doc """
Get all of the tables that are in the database that was selected
"""
def get_tables(db)
@doc """
Get the columns for the table that is passed in
"""
def get_columns(db, table)
end