Packages
Plasm generates Ecto models based on existing database tables and populates the fields of the model.
Current section
Files
Jump to
Current section
Files
lib/database/common.ex
defmodule Plasm.Database.Common do
@doc "Connect to the database with the given connection string"
def connect(conn_string) do
:odbc.start
to_char_list(conn_string) |> :odbc.connect([])
end
end