zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

binary_extension.ex (313B)


      1 defmodule Postgrex.BinaryExtension do
      2   @moduledoc false
      3 
      4   defmacro __using__(matching) do
      5     quote location: :keep do
      6       @behaviour Postgrex.Extension
      7 
      8       def init(_), do: nil
      9 
     10       def matching(_), do: unquote(matching)
     11 
     12       def format(_), do: :binary
     13 
     14       defoverridable init: 1
     15     end
     16   end
     17 end