super_extension.ex (540B)
1 defmodule Postgrex.SuperExtension do 2 @moduledoc false 3 4 @type state :: term 5 6 @callback init(Keyword.t()) :: state 7 8 @callback matching(state) :: [ 9 type: String.t(), 10 send: String.t(), 11 receive: String.t(), 12 input: String.t(), 13 output: String.t() 14 ] 15 16 @callback format(state) :: :super_binary 17 18 @callback oids(Postgrex.TypeInfo.t(), state) :: nil | [Postgrex.Types.oid()] 19 20 @callback encode(state) :: Macro.t() 21 22 @callback decode(state) :: Macro.t() 23 end