Surgex v3.2.7 API Reference

Modules

Main Surgex OTP application that calls patches configured for running and hibernates itself

Extensions to the official Appsignal package

Integration for logging Ecto queries

Tools for working with Ecto changesets

Tools for moving data between PostgreSQL databases and tables

Acquires a PostgreSQL slave synchronization with a remote master

Configures a PostgreSQL Foreign Data Wrapper linkage between two repos

Executes system-level PostgreSQL queries (server version, WAL status etc)

Proxies repo calls depending on replication needs

Extracts and transforms data from one PostgreSQL table into another

Cleans tables in a database represented by an Ecto repo

Official style guide for Elixir and Phoenix projects at Surge Ventures

Basic code style and formatting guidelines

Higher level application design and engineering guidelines

Parses, casts and catches errors in the web request input, such as params or JSON API body

Checks if the given parameter’s value is on the list of allowed values

Holds a box made of two points on Earth’s surface

Holds a specific point on Earth’s surface

Parses the JSON API’s include parameter according to the JSON API spec

Parses the JSON API’s sort parameter according to the JSON API spec

Available options:

  • trim is trimming whitespaces from the string, takes priority over min and max options
  • min is a minimal length of the string, returns :too_short error symbol
  • max is a maximal length of the string, returns :too_long error symbol

Tools for making code maintenance and refactors easier

Maps module names to filenames and finds non-matches

Tools for dynamic setup of Ecto repo opts

Extensions to the official Sentry package

Mix Tasks

Runs tasks from the Surgex.Refactor module