1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#![warn(missing_docs, unused_extern_crates, clippy::all)]
#![allow(clippy::redundant_closure, clippy::needless_lifetimes)]
#[macro_use]
extern crate diesel;
use std::result;
pub(crate) mod args;
pub(crate) mod clouds;
pub(crate) mod concat;
pub(crate) mod context;
pub(crate) mod csv_stream;
mod driver_args;
pub mod drivers;
pub(crate) mod from_csv_cell;
pub(crate) mod from_json_value;
pub(crate) mod if_exists;
pub(crate) mod locator;
pub(crate) mod path_or_stdio;
pub mod rechunk;
pub mod schema;
pub(crate) mod separator;
mod temporary_storage;
pub mod tokio_glue;
pub(crate) mod transform;
pub use failure::Error;
pub type Result<T, E = Error> = result::Result<T, E>;
pub(crate) const BUFFER_SIZE: usize = 64 * 1024;
pub use args::{
ArgumentState, DestinationArguments, SharedArguments, SourceArguments, Unverified,
Verified,
};
pub use context::Context;
pub use csv_stream::CsvStream;
pub use driver_args::DriverArguments;
pub use if_exists::IfExists;
pub use locator::{BoxLocator, DisplayOutputLocators, Locator};
pub use temporary_storage::TemporaryStorage;
pub use tokio_glue::{run_futures_with_runtime, ConsumeWithParallelism};
#[allow(unused_imports)]
pub(crate) mod common {
pub(crate) use bytes::BytesMut;
pub(crate) use enumset::{EnumSet, EnumSetType};
pub(crate) use failure::{format_err, ResultExt};
pub(crate) use futures::{
join, stream, try_join, Future, FutureExt, Stream, StreamExt, TryFutureExt,
TryStreamExt,
};
pub(crate) use slog::{debug, error, info, o, trace, warn, Logger};
pub(crate) use std::{
any::Any,
io::{Read, Write},
};
pub(crate) use tokio::{prelude::*, sync::mpsc};
pub(crate) use url::Url;
pub(crate) use crate::{
args::{
ArgumentState, DestinationArguments, DestinationArgumentsFeatures,
SharedArguments, SourceArguments, SourceArgumentsFeatures, Unverified,
Verified,
},
context::Context,
csv_stream::CsvStream,
driver_args::DriverArguments,
if_exists::{IfExists, IfExistsFeatures},
locator::{
BoxLocator, DisplayOutputLocators, Features, Locator, LocatorFeatures,
LocatorStatic,
},
path_or_stdio::PathOrStdio,
schema::Table,
temporary_storage::TemporaryStorage,
tokio_glue::{
async_read_to_end, async_read_to_string, box_stream_once,
buffer_sync_write_and_copy_to_async, run_futures_with_runtime,
run_sync_fn_in_background, BoxFuture, BoxStream, SendResultExt,
},
Error, Result, BUFFER_SIZE,
};
}