C# Class Raven.Studio.Features.Smuggler.SmugglerApi

Inheritance: Raven.Abstractions.Smuggler.SmugglerApiBase
Mostrar archivo Open project: robashton/ravendb Class Usage Examples

Public Methods

Method Description
SmugglerApi ( SmugglerOptions smugglerOptions, IAsyncDatabaseCommands commands, Action output ) : System

Protected Methods

Method Description
EnsureDatabaseExists ( ) : System.Threading.Tasks.Task
ExportAttachments ( Raven.Imports.Newtonsoft.Json.JsonTextWriter jsonWriter, Etag lastEtag ) : Task
GetDocuments ( Etag lastEtag ) : Task>
GetIndexes ( int totalCount ) : Task
GetStats ( ) : Task
GetTransformers ( int totalCount ) : Task
GetVersion ( ) : Task
PutAttachment ( AttachmentExportInfo attachmentExportInfo ) : System.Threading.Tasks.Task
PutDocument ( RavenJObject document ) : System.Threading.Tasks.Task
PutIndex ( string indexName, RavenJToken index ) : System.Threading.Tasks.Task
PutTransformer ( string transformerName, RavenJToken transformer ) : System.Threading.Tasks.Task
ShowProgress ( string format ) : void
TransformDocument ( RavenJObject document, string transformScript ) : Task

Private Methods

Method Description
FlushBatch ( ) : System.Threading.Tasks.Task
StripQuotesIfNeeded ( RavenJToken value ) : string

Method Details

EnsureDatabaseExists() protected method

protected EnsureDatabaseExists ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ExportAttachments() protected method

protected ExportAttachments ( Raven.Imports.Newtonsoft.Json.JsonTextWriter jsonWriter, Etag lastEtag ) : Task
jsonWriter Raven.Imports.Newtonsoft.Json.JsonTextWriter
lastEtag Raven.Abstractions.Util.Etag
return Task

GetDocuments() protected method

protected GetDocuments ( Etag lastEtag ) : Task>
lastEtag Raven.Abstractions.Util.Etag
return Task>

GetIndexes() protected method

protected GetIndexes ( int totalCount ) : Task
totalCount int
return Task

GetStats() protected method

protected GetStats ( ) : Task
return Task

GetTransformers() protected method

protected GetTransformers ( int totalCount ) : Task
totalCount int
return Task

GetVersion() protected method

protected GetVersion ( ) : Task
return Task

PutAttachment() protected method

protected PutAttachment ( AttachmentExportInfo attachmentExportInfo ) : System.Threading.Tasks.Task
attachmentExportInfo AttachmentExportInfo
return System.Threading.Tasks.Task

PutDocument() protected method

protected PutDocument ( RavenJObject document ) : System.Threading.Tasks.Task
document RavenJObject
return System.Threading.Tasks.Task

PutIndex() protected method

protected PutIndex ( string indexName, RavenJToken index ) : System.Threading.Tasks.Task
indexName string
index RavenJToken
return System.Threading.Tasks.Task

PutTransformer() protected method

protected PutTransformer ( string transformerName, RavenJToken transformer ) : System.Threading.Tasks.Task
transformerName string
transformer RavenJToken
return System.Threading.Tasks.Task

ShowProgress() protected method

protected ShowProgress ( string format ) : void
format string
return void

SmugglerApi() public method

public SmugglerApi ( SmugglerOptions smugglerOptions, IAsyncDatabaseCommands commands, Action output ) : System
smugglerOptions Raven.Abstractions.Smuggler.SmugglerOptions
commands IAsyncDatabaseCommands
output Action
return System

TransformDocument() protected method

protected TransformDocument ( RavenJObject document, string transformScript ) : Task
document RavenJObject
transformScript string
return Task