A SQLite data layer for Ash Framework
Go to file
dependabot[bot] 9f070ca1cf
chore(deps): bump ash_sql from 0.1.1-rc.5 to 0.1.1-rc.6 (#11)
Bumps [ash_sql](https://github.com/ash-project/ash_sql) from 0.1.1-rc.5 to 0.1.1-rc.6.
- [Changelog](https://github.com/ash-project/ash_sql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_sql/compare/v0.1.1-rc.5...v0.1.1-rc.6)

---
updated-dependencies:
- dependency-name: ash_sql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 14:47:37 +01:00
.github chore: enable dependabot for mix dependencies. 2024-04-11 09:33:51 +12: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 chore: release version v0.1.2-rc.0 2024-04-15 14:42:47 +01:00
lib chore: inhibit credo warning. 2024-04-11 13:54:59 +12: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.2-rc.0 2024-04-15 14:42:47 +01:00
LICENSE init: copy and gouge ash_postgres 2023-09-22 22:52:22 -04:00
README.md chore: release version v0.1.2-rc.0 2024-04-15 14:42:47 +01:00
mix.exs chore: release version v0.1.2-rc.0 2024-04-15 14:42:47 +01:00
mix.lock chore(deps): bump ash_sql from 0.1.1-rc.5 to 0.1.1-rc.6 (#11) 2024-04-15 14:47:37 +01:00

README.md

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.2-rc.0"}

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