public void InsertRecord(TextWriter sw, char[] buf, string escaping, Action <TextWriter, char> mappings) { var pref = PostgresTuple.BuildSlashEscape(escaping.Length); if (mappings != null) { foreach (var p in pref) { mappings(sw, p); } } else { sw.Write(pref); } sw.Write('x'); Value.ToPostgresBytea(sw); if (Dispose) { Value.Dispose(); } }