A SQLite data layer for Ash Framework
Find a file
2023-11-17 08:30:47 -05:00
.github ci: add back in sqlite to ci 2023-10-11 15:57:39 -04:00
.vscode improvement: draw the rest of the owl 2023-10-10 15:42:51 -04:00
config WIP 2023-09-25 10:22:54 -04:00
documentation docs: update version 2023-11-17 08:30:47 -05:00
lib chore: update tests 2023-10-12 15:03:35 -04:00
logos init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
priv improvement: draw the rest of the owl 2023-10-10 15:42:51 -04:00
test chore: update tests 2023-10-12 15:03:35 -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: release version v0.1.1 2023-10-12 15:03:45 -04:00
mix.lock chore: update ecto_sqlite3 and docs 2023-10-11 20:23:16 -04:00
README.md chore: release version v0.1.1 2023-10-12 15:03:45 -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, 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