(Please note: Noob here so please ELI5, thanks.)
Code Snippet:
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
What's causing this warning and what's the correct resolution? Thanks for taking a moment to help out :)