【发布时间】:2020-02-26 23:07:38
【问题描述】:
(请注意:这里是菜鸟,所以请 ELI5,谢谢。)
代码片段:
defmodule Wallet do
use Ecto.Repo,
otp_app: :arbit,
adapter: Ecto.Adapters.Postgres
alias Ecto.Repo
#use Genserver
require ArbitDB.WalletBalance
def refresh_db do
updated_balances = liquid_holdings()
Repo.insert_all(WalletBalance, updated_balances,
on_conflict: :replace_all_except_primary_key, conflict_target: :value_USD)
end
$ iex -S mix
Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Compiling 1 file (.ex)
warning: Ecto.Repo.insert_all/3 is undefined or private
是什么导致了这个警告?正确的解决方法是什么?感谢您花点时间提供帮助:)
【问题讨论】:
标签: compiler-errors elixir warnings ecto undefined-function