pg_client/pg_client
Types
PgType
pub type PgType {
PgString(String)
PgInt(Int)
PgBool(Bool)
PgDateTime(Dynamic)
}
Constructors
-
PgString(String) -
PgInt(Int) -
PgBool(Bool) -
PgDateTime(Dynamic)
SqlReturn
pub type SqlReturn {
Select(Int, List(List(PgType)))
Insert(Int, List(List(PgType)))
}
Constructors
-
Select(Int, List(List(PgType))) -
Insert(Int, List(List(PgType)))
Functions
query
pub external fn query( String, List(PgType), ) -> Result(SqlReturn, Nil)
start_link
pub fn start_link(database_url: String) -> Result(Pid(a), Nil)