插入唯一数据 - 避免重复

时间:2018-01-05 10:29:38

标签: android sqlite android-sqlite

此代码仍存储重复的def handle_call({:accept_game, player_2_id}, _from, %{started: false, player_2: p2_id} = state) when player_2_id == p2_id do #create game hands, broadcasts, etc {:reply, :ok, Map.put(state, :started, true)} end 。我怎么解决呢?

KEY_NAME

0 个答案:

没有答案