예제 #1
0
 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);
     }
 }
예제 #2
0
 public void LoadIntoTempTable(ITenant tenant, ISerializer serializer, NpgsqlConnection conn,
                               IEnumerable <T> documents)
 {
     _inner.LoadIntoTempTable(tenant, serializer, conn, documents.OfType <TRoot>());
 }
예제 #3
0
 public void LoadIntoTempTable(ITenant tenant, ISerializer serializer, NpgsqlConnection conn, IEnumerable <T> documents,
                               CharArrayTextWriter pool)
 {
     _inner.LoadIntoTempTable(tenant, serializer, conn, documents.OfType <TRoot>(), pool);
 }