文件名称:ecto:数据映射和语言集成查询的工具包
文件大小:458KB
文件格式:ZIP
更新时间:2024-04-08 09:16:34
Elixir
Ecto是用于Elixir的数据映射和语言集成查询的工具包。这是一个例子: # In your config/config.exs file config :my_app , ecto_repos: [ Sample . Repo ] config :my_app , Sample . Repo , database: " ecto_simple " , username: " postgres " , password: " postgres " , hostname: " localhost " , port: " 5432 " # In your application code defmodule Sample . Repo do use Ecto . Repo , otp_app: :my_app , adapter: Ecto . Ad