A SQLite data layer for Ash Framework
Find a file
2024-04-05 19:42:16 -04:00
.github improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00
.vscode improvement: draw the rest of the owl 2023-10-10 15:42:51 -04:00
config improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00
documentation improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00
lib improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00
logos init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
priv chore: regen migrations 2024-04-05 19:42:16 -04:00
test improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00
.check.exs init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
.credo.exs init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
.formatter.exs improvement: draw the rest of the owl 2023-10-10 15:42:51 -04:00
.gitignore improvement: get at least one test passing 2023-09-23 01:32:12 -04:00
.tool-versions init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
CHANGELOG.md chore: release version v0.1.1 2023-10-12 15:03:45 -04:00
LICENSE init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
mix.exs chore: fix local ash dep 2024-04-01 13:57:08 -04:00
mix.lock improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00
README.md improvement: support Ash 3.0, leverage ash_sql package 2024-04-01 12:18:42 -04:00

AshSqlite

Elixir CI License: MIT Coverage Status Hex version badge

Notice: Beta

This is a newly released library. You can expect some hiccups here and there. Please report any issues you find!

DSL

See the DSL documentation in AshSqlite.DataLayer for DSL documentation

Usage

Add ash_qlite to your mix.exs file.

{:ash_sqlite, "~> 0.1.1"}

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

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

defmodule MyApp.SomeResource do
  use Ash.Resource, domain: MyDomain, data_layer: AshSqlite.DataLayer

  sqlite do
    repo MyApp.Repo
    table "table_name"
  end

  attributes do
    # ... Attribute definitions
  end
end

Generating Migrations

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

Contributors

Ash is made possible by its excellent community!

Become a contributor