C# Class Raven.Database.Bundles.SqlReplication.RelationalDatabaseWriter

Inheritance: IDisposable
Show file Open project: robashton/ravendb Class Usage Examples

Public Methods

Method Description
Commit ( ) : bool
DeleteItems ( string tableName, string pkName, bool doNotParameterize, List identifiers ) : void
Dispose ( ) : void
Execute ( Raven.Database.Bundles.SqlReplication.ConversionScriptResult scriptResult ) : bool
RelationalDatabaseWriter ( DocumentDatabase database, Raven.Database.Bundles.SqlReplication.SqlReplicationConfig cfg, Raven.Database.Bundles.SqlReplication.SqlReplicationStatistics replicationStatistics ) : System
SanitizeSqlValue ( string sqlValue ) : string

Private Methods

Method Description
GetDbProviderFactory ( Raven.Database.Bundles.SqlReplication.SqlReplicationConfig cfg ) : System.Data.Common.DbProviderFactory
GetParameterName ( System.Data.Common.DbProviderFactory providerFactory, DbCommandBuilder commandBuilder, string paramName ) : string
InsertItems ( string tableName, string pkName, List dataForTable ) : void
SetParamValue ( DbParameter colParam, RavenJToken val ) : void

Method Details

Commit() public method

public Commit ( ) : bool
return bool

DeleteItems() public method

public DeleteItems ( string tableName, string pkName, bool doNotParameterize, List identifiers ) : void
tableName string
pkName string
doNotParameterize bool
identifiers List
return void

Dispose() public method

public Dispose ( ) : void
return void

Execute() public method

public Execute ( Raven.Database.Bundles.SqlReplication.ConversionScriptResult scriptResult ) : bool
scriptResult Raven.Database.Bundles.SqlReplication.ConversionScriptResult
return bool

RelationalDatabaseWriter() public method

public RelationalDatabaseWriter ( DocumentDatabase database, Raven.Database.Bundles.SqlReplication.SqlReplicationConfig cfg, Raven.Database.Bundles.SqlReplication.SqlReplicationStatistics replicationStatistics ) : System
database DocumentDatabase
cfg Raven.Database.Bundles.SqlReplication.SqlReplicationConfig
replicationStatistics Raven.Database.Bundles.SqlReplication.SqlReplicationStatistics
return System

SanitizeSqlValue() public method

public SanitizeSqlValue ( string sqlValue ) : string
sqlValue string
return string