Current section

Files

Jump to
closure_table examples ct_ecto deps postgrex lib postgrex binary_extension.ex
Raw

examples/ct_ecto/deps/postgrex/lib/postgrex/binary_extension.ex

defmodule Postgrex.BinaryExtension do
@moduledoc false
defmacro __using__(matching) do
quote location: :keep do
@behaviour Postgrex.Extension
def init(_), do: nil
def matching(_), do: unquote(matching)
def format(_), do: :binary
defoverridable init: 1
end
end
end