Postgrestex (Postgrestex v0.1.2) View Source
Postgrestex
is a client library which provides elixir bindings to interact with PostgREST. PostgREST in turn
is a standalone web server that turns your PostgreSQL database directly into a RESTful API.
Link to this section Summary
Functions
Authenticate the client with either the bearer token or basic authentication.
Take in and execute a request. Doesn't return an exception if an error is thrown.
Take in and execute a request. Raises an exception if an error occurs.
Delete an existing value in the currently selected table.
Either filter in or filter out based on negate_next.
Select table to obtain data from/perform operations on
Creates an initial request in the form of a map that the user can work with.
Insert a row into currently selected table. Does an insert and update if upsert is set to True
Toggle between filtering in or filtering out.
Execute a Stored Procedure Call
Remove reserved characters from the parameter string.
Switch to another schema.
Update an existing value in the currently selected table.
Link to this section Functions
Specs
Specs
Authenticate the client with either the bearer token or basic authentication.
Specs
call(map()) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()}
Take in and execute a request. Doesn't return an exception if an error is thrown.
Specs
call!(map()) :: {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | Postgrestex.NoMethodException
Take in and execute a request. Raises an exception if an error occurs.
Specs
Delete an existing value in the currently selected table.
Specs
Specs
Either filter in or filter out based on negate_next.
Specs
Select table to obtain data from/perform operations on
Specs
Specs
Specs
Specs
Specs
Creates an initial request in the form of a map that the user can work with.
Insert a row into currently selected table. Does an insert and update if upsert is set to True
Specs
Specs
Specs
Specs
Specs
Specs
Specs
Specs
Toggle between filtering in or filtering out.
Specs
Specs
Specs
Specs
Specs
Specs
Specs
Execute a Stored Procedure Call
Specs
Remove reserved characters from the parameter string.
Specs
Specs
Switch to another schema.
Specs
Specs
Specs
Specs
Specs
Update an existing value in the currently selected table.