【文件属性】:
文件名称:atlas:Elixir的对象关系映射器
文件大小:41KB
文件格式:ZIP
更新时间:2021-05-15 11:51:22
Elixir
阿特拉斯
Atlas是Elixir的对象关系映射器。 (正在进行中。期待重大更改)
当前功能
Postgres转接器
验证方式
坚持不懈
模式定义
模型查询生成器
自动为每个字段定义生成“访问器”功能
路线图
扩展查询构建器以支持联接
通过以下方式添加模型关系,即belongs_to , has_many , has_many through:
其他SQL适配器
模式迁移
用法示例:
defmodule User do
use Atlas . Model
@table :users
@primary_key :id
field :id , :integer
field :email , :string
field :is_site_admin , :boolean
field :archived , :boolean
field :state , :s
【文件预览】:
atlas-master
----mix.lock(102B)
----.gitignore(97B)
----mix.exs(735B)
----.travis.yml(439B)
----log()
--------.gitkeep(0B)
----LICENSE(1KB)
----README.md(7KB)
----lib()
--------atlas()
--------atlas.ex(148B)
----test()
--------protocols()
--------model_test.exs(10KB)
--------schema_test.exs(2KB)
--------atlas_test.exs(91B)
--------repo_test.exs(3KB)
--------test_helper.exs(88B)
--------validator_test.exs(844B)
--------relationships_test.exs(2KB)
--------query()
--------database()
--------finders_test.exs(1KB)
--------accessors_test.exs(2KB)
--------persistence_test_helper.exs(2KB)