All Projects → ash-project → ash_postgres

ash-project / ash_postgres

Licence: MIT license
A postgresql datalayer for the Ash Framework

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to ash postgres

pgsentinel
postgresql extension providing Active session history
Stars: ✭ 110 (+423.81%)
Mutual labels:  postgres, ash
Odin-Securities
A master database of securities data for use with the Odin algorithmic trading platform.
Stars: ✭ 17 (-19.05%)
Mutual labels:  postgres
ash admin
An admin ui for Ash Resources
Stars: ✭ 46 (+119.05%)
Mutual labels:  ash
pg-pubsub
Reliable PostgreSQL LISTEN/NOTIFY with inter-process lock support
Stars: ✭ 50 (+138.1%)
Mutual labels:  postgres
IreneBot
Irene Bot for Discord in Python
Stars: ✭ 15 (-28.57%)
Mutual labels:  postgres
pgxmock
pgx mock driver for golang to test database interactions
Stars: ✭ 97 (+361.9%)
Mutual labels:  postgres
Pg Extend Rs
Postgres extension library for Rust
Stars: ✭ 253 (+1104.76%)
Mutual labels:  postgres
gae-postgres
Connect to Cloud SQL for PostgreSQL from Google App Engine
Stars: ✭ 23 (+9.52%)
Mutual labels:  postgres
migrant lib
Embeddable migration management
Stars: ✭ 22 (+4.76%)
Mutual labels:  postgres
postgresql lwrp
Express 42 postgresql cookbook
Stars: ✭ 57 (+171.43%)
Mutual labels:  postgres
pg-search-sequelize
Postgres full-text search in Node.js and Sequelize.
Stars: ✭ 31 (+47.62%)
Mutual labels:  postgres
heltin
Robust client registry for individuals receiving mental healthcare services.
Stars: ✭ 18 (-14.29%)
Mutual labels:  postgres
phpPgAdmin6
PHP7+ Based administration tool for PostgreSQL 9.3+
Stars: ✭ 45 (+114.29%)
Mutual labels:  postgres
imgui-rs-vulkan-renderer
A Vulkan renderer for imgui-rs using Ash
Stars: ✭ 44 (+109.52%)
Mutual labels:  ash
pgsink
Logically replicate data out of Postgres into sinks (files, Google BigQuery, etc)
Stars: ✭ 53 (+152.38%)
Mutual labels:  postgres
Pg insights
A collection of convenient SQL for monitoring Postgres database health.
Stars: ✭ 253 (+1104.76%)
Mutual labels:  postgres
shyft
⬡ Shyft is a server-side framework for building powerful GraphQL APIs 🚀
Stars: ✭ 56 (+166.67%)
Mutual labels:  postgres
clunk
Clojure Postgres w/out JDBC
Stars: ✭ 25 (+19.05%)
Mutual labels:  postgres
flan
A tasty tool that lets you save, load and share postgres snapshots with ease
Stars: ✭ 177 (+742.86%)
Mutual labels:  postgres
rocket-rest-api-with-jwt
A Rusty Rocket fuelled with Diesel and secured by JWT
Stars: ✭ 62 (+195.24%)
Mutual labels:  postgres

AshPostgres

Elixir CI License: MIT Coverage Status Hex version badge

AshPostgres supports all the capabilities of an Ash data layer. AshPostgres is the primary Ash data layer.

Custom Predicates:

  • AshPostgres.Predicates.Trigram

DSL

See the DSL documentation in AshPostgres.DataLayer for DSL documentation

Usage

Add ash_postgres to your mix.exs file.

{:ash_postgres, "~> x.y.z"}

To use this data layer, you need to chage your Ecto Repo's from use Ecto.Repo, to use AshPostgres.Repo. because AshPostgres adds functionality to Ecto Repos.

Then, configure each of your Ash.Resource resources by adding use Ash.Resource, data_layer: AshPostgres.DataLayer like so:

defmodule MyApp.SomeResource do
  use Ash.Resource, data_layer: AshPostgres.DataLayer

  postgres do
    repo MyApp.Repo
    table "table_name"
  end

  attributes do
    # ... Attribute definitions
  end
end

Generating Migrations

See the documentation for Mix.Tasks.AshPostgres.GenerateMigrations for how to generate migrations from your resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].