C# Class Raven.Smuggler.SmugglerApi

Inheritance: Raven.Abstractions.Smuggler.SmugglerApiBase
Afficher le fichier Open project: robashton/ravendb Class Usage Examples

Private Properties

Свойство Type Description
FlushBatch Task
StripQuotesIfNeeded string

Méthodes publiques

Méthode Description
ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, Raven.Abstractions.Data.PeriodicBackupStatus backupStatus = null ) : Task
ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, bool lastEtagsFromFile, Raven.Abstractions.Data.PeriodicBackupStatus lastEtag ) : Task
ImportData ( System.Stream stream, SmugglerOptions options ) : Task
SmugglerApi ( SmugglerOptions smugglerOptions, RavenConnectionStringOptions connectionStringOptions ) : System

Méthodes protégées

Méthode Description
CreateRequest ( string url, string method = "GET" ) : HttpRavenRequest
CreateStore ( ) : DocumentStore
EnsureDatabaseExists ( ) : 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 ) : Task
PutDocument ( RavenJObject document ) : Task
PutIndex ( string indexName, RavenJToken index ) : Task
PutTransformer ( string transformerName, RavenJToken transformer ) : Task
ShowProgress ( string format ) : void
TransformDocument ( RavenJObject document, string transformScript ) : Task

Private Methods

Méthode Description
FlushBatch ( ) : Task
StripQuotesIfNeeded ( RavenJToken value ) : string

Method Details

CreateRequest() protected méthode

protected CreateRequest ( string url, string method = "GET" ) : HttpRavenRequest
url string
method string
Résultat HttpRavenRequest

CreateStore() protected méthode

protected CreateStore ( ) : DocumentStore
Résultat DocumentStore

EnsureDatabaseExists() protected méthode

protected EnsureDatabaseExists ( ) : Task
Résultat Task

ExportAttachments() protected méthode

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

ExportData() public méthode

public ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, Raven.Abstractions.Data.PeriodicBackupStatus backupStatus = null ) : Task
stream System.Stream
options SmugglerOptions
incremental bool
backupStatus Raven.Abstractions.Data.PeriodicBackupStatus
Résultat Task

ExportData() public méthode

public ExportData ( System.Stream stream, SmugglerOptions options, bool incremental, bool lastEtagsFromFile, Raven.Abstractions.Data.PeriodicBackupStatus lastEtag ) : Task
stream System.Stream
options SmugglerOptions
incremental bool
lastEtagsFromFile bool
lastEtag Raven.Abstractions.Data.PeriodicBackupStatus
Résultat Task

GetDocuments() protected méthode

protected GetDocuments ( Etag lastEtag ) : Task>
lastEtag Raven.Abstractions.Util.Etag
Résultat Task>

GetIndexes() protected méthode

protected GetIndexes ( int totalCount ) : Task
totalCount int
Résultat Task

GetStats() protected méthode

protected GetStats ( ) : Task
Résultat Task

GetTransformers() protected méthode

protected GetTransformers ( int totalCount ) : Task
totalCount int
Résultat Task

GetVersion() protected méthode

protected GetVersion ( ) : Task
Résultat Task

ImportData() public méthode

public ImportData ( System.Stream stream, SmugglerOptions options ) : Task
stream System.Stream
options SmugglerOptions
Résultat Task

PutAttachment() protected méthode

protected PutAttachment ( AttachmentExportInfo attachmentExportInfo ) : Task
attachmentExportInfo AttachmentExportInfo
Résultat Task

PutDocument() protected méthode

protected PutDocument ( RavenJObject document ) : Task
document RavenJObject
Résultat Task

PutIndex() protected méthode

protected PutIndex ( string indexName, RavenJToken index ) : Task
indexName string
index RavenJToken
Résultat Task

PutTransformer() protected méthode

protected PutTransformer ( string transformerName, RavenJToken transformer ) : Task
transformerName string
transformer RavenJToken
Résultat Task

ShowProgress() protected méthode

protected ShowProgress ( string format ) : void
format string
Résultat void

SmugglerApi() public méthode

public SmugglerApi ( SmugglerOptions smugglerOptions, RavenConnectionStringOptions connectionStringOptions ) : System
smugglerOptions SmugglerOptions
connectionStringOptions RavenConnectionStringOptions
Résultat System

TransformDocument() protected méthode

protected TransformDocument ( RavenJObject document, string transformScript ) : Task
document RavenJObject
transformScript string
Résultat Task