Skip to content

A SQLite data layer for Ash Framework edited for MSSQL

License

Notifications You must be signed in to change notification settings

user20230119/ash_mssql

 
 

Repository files navigation

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

About

A SQLite data layer for Ash Framework edited for MSSQL

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%