Property | Type | Description | |
---|---|---|---|
OutputQuoteLevel | CsvQuoteLevel | ||
Path | string | ||
Reader | |||
Type | CsvConnectionType | ||
Writer |
Property | Type | Description | |
---|---|---|---|
HasBeenWrittenTo | bool |
Method | Description | |
---|---|---|
CreateDataAccessLayer ( ) : IDaLayer |
Returns the appropriate data access layer for this connection.
|
|
CsvDescriptor ( |
Populates the descriptor's values from a config file.
|
|
CsvDescriptor ( CsvConnectionType type, string path ) : System |
Creates a descriptor for the given path. If the path may either be a file or a directory, see CsvConnectionType for descriptions of the behavior in either case.
|
|
CsvDescriptor ( CsvConnectionType type, string path, CsvQuoteLevel quoteLevel ) : System |
Creates a descriptor for the given path. If the path may either be a file or a directory, see CsvConnectionType for descriptions of the behavior in either case. Allows you to specify the verbosity of quotes when we write the file.
|
|
CsvDescriptor ( |
Creates a descriptor using a StreamReader. See CsvConnectionType for a description of the behavior when using a StreamReader.
|
|
CsvDescriptor ( |
Creates a descriptor using a StreamReader. See CsvConnectionType for a description of the behavior when using a StreamReader. Allows you to specify the verbosity of quotes when we write to the stream.
|
|
CsvDescriptor ( |
Creates a descriptor using a TextWriter. See CsvConnectionType for a description of the behavior when using a TextWriter.
|
|
CsvDescriptor ( |
Creates a descriptor using a TextWriter. See CsvConnectionType for a description of the behavior when using a TextWriter. Allows you to specify the verbosity of quotes when we write to the stream.
|
|
CsvDescriptor ( string path ) : System |
Creates a descriptor for the given path. If the path may either be a file or a directory, see CsvConnectionType for descriptions of the behavior in either case.
|
|
CsvDescriptor ( string path, CsvQuoteLevel quoteLevel ) : System |
Creates a descriptor for the given path. If the path may either be a file or a directory, see CsvConnectionType for descriptions of the behavior in either case. Allows you to specify the verbosity of quotes when we write the file.
|
|
ToCleanString ( ) : string |
This method is similar to ToString, except it will not contain any "sensitive" information, I.E. passwords. This method is intended to be used for logging or error handling, where we do not want to display passwords to (potentially) just anyone, but we do want to indicate what DB connection we were using.
|
|
ToCompleteString ( ) : string |
Since we often need to represent database connection info as strings, child classes must implement ToCompleteString() such that this.Equals(that) and this.ToCompleteString().Equals(that.ToCompleteString()) will behave the same.
|
Method | Description | |
---|---|---|
CsvDescriptor ( CsvConnectionType type, string path, |
Creates a descriptor from any possible combination of inputs / configuration.
|
public CsvDescriptor ( |
||
config | Config to get params from. | |
component | string | Section of the config XML to look in for db params. |
decryptionDelegate | ConnectionInfoDecryptionDelegate | Delegate to call to decrypt password fields. /// May be null if passwords are in plain text. |
return | System |
public CsvDescriptor ( CsvConnectionType type, string path ) : System | ||
type | CsvConnectionType | Which type is it, a file or a directory. |
path | string | Path to the CSV file or directory. Will be created if it does not exist. |
return | System |
public CsvDescriptor ( CsvConnectionType type, string path, CsvQuoteLevel quoteLevel ) : System | ||
type | CsvConnectionType | Which type is it, a file or a directory. |
path | string | Path to the CSV file or directory. Will be created if it does not exist. |
quoteLevel | CsvQuoteLevel | How verbosely do we quote values we write. |
return | System |
protected CsvDescriptor ( CsvConnectionType type, string path, |
||
type | CsvConnectionType | May be InputStream or OutputStream if stream is not null, or /// Unknown if stream is null. |
path | string | Path to the CSV file or directory. One of path, reader, writer /// must be set. |
writer | The writer to "insert" to. One of path, reader, writer /// must be set. | |
reader | The reader to "query" against. One of path, reader, writer /// must be set. | |
quoteLevel | CsvQuoteLevel | How verbosely do we quote values we write. |
return | System |
public CsvDescriptor ( |
||
reader | The reader to "query" against. | |
return | System |
public CsvDescriptor ( |
||
reader | The reader to "query" against. | |
quoteLevel | CsvQuoteLevel | How verbosely do we quote values we write. |
return | System |
public CsvDescriptor ( |
||
writer | The writer to "insert" to. | |
return | System |
public CsvDescriptor ( |
||
writer | The writer to "insert" to. | |
quoteLevel | CsvQuoteLevel | How verbosely do we quote values we write. |
return | System |
public CsvDescriptor ( string path ) : System | ||
path | string | Path to the CSV file or directory. Must exist. |
return | System |
public CsvDescriptor ( string path, CsvQuoteLevel quoteLevel ) : System | ||
path | string | Path to the CSV file or directory. Must exist. |
quoteLevel | CsvQuoteLevel | How verbosely do we quote values we write. |
return | System |