Current section

Files

Jump to
mongodb_driver lib mongo query.ex
Raw

lib/mongo/query.ex

defmodule Mongo.Query do
@moduledoc """
This is the query implementation for the Query Protocoll
  Encoding and decoding does not take place at this point, but is directly performed
into the functions of Mongo.MongoDBConnection.Utils.
"""
defstruct action: nil
end
defimpl DBConnection.Query, for: Mongo.Query do
# coveralls-ignore-start
def parse(query, _opts), do: query # gets never called
def describe(query, _opts), do: query # gets never called
# coveralls-ignore-stop
def encode(_query, params, _opts), do: params
def decode(_query, reply, _opts), do: reply
end