Exzeitable.Database (Exzeitable v0.4.4) View Source

Database interactions

Link to this section Summary

Functions

I want to just do a select: count(c.id)

Get the data using query

We only want letters to avoid SQL injection attacks

Generates the magic SQL fragment that performs search dynamically. Created outside macro to bypass ecto restrictions

Link to this section Functions

Link to this function

get_record_count(assigns)

View Source

Specs

get_record_count(map()) :: integer()

I want to just do a select: count(c.id)

Specs

get_records(map()) :: [map()]

Get the data using query

Specs

prefix_search(String.t()) :: String.t()

We only want letters to avoid SQL injection attacks

Specs

tsvector_string([keyword()]) :: String.t()

Generates the magic SQL fragment that performs search dynamically. Created outside macro to bypass ecto restrictions