2016-11-07 56 views
-4

在elixir iex中,我想知道基本步驟。我如何運行db select並在iex中獲得結果?

1.如果我有模塊和如何導入它。

2.我想運行from l in '' where並獲取地圖。

林試圖與import Ecto.Query導入,然後 我正在運行一些像from l in '' where,我得到這個 #Ecto.Query<from l in "", where: >,如何獲取數據的結果?

+3

你應該回答真的添加到您的問題,而不是與答案編輯問題本身。 –

回答

0
import Ecto.Query 
alias Repo 
Repo.one(from s in Struct) 

也許還看all

相關問題