private void loadDocuments <T>(IEnumerable <T> documents, IBulkLoader <T> loader, BulkInsertMode mode, NpgsqlConnection conn, CharArrayTextWriter writer) { if (mode == BulkInsertMode.InsertsOnly) { loader.Load(_tenant, Serializer, conn, documents, writer); } else { loader.LoadIntoTempTable(_tenant, Serializer, conn, documents, writer); } }
public void LoadIntoTempTable(ITenant tenant, ISerializer serializer, NpgsqlConnection conn, IEnumerable <T> documents) { _inner.LoadIntoTempTable(tenant, serializer, conn, documents.OfType <TRoot>()); }
public void LoadIntoTempTable(ITenant tenant, ISerializer serializer, NpgsqlConnection conn, IEnumerable <T> documents, CharArrayTextWriter pool) { _inner.LoadIntoTempTable(tenant, serializer, conn, documents.OfType <TRoot>(), pool); }