C# Class MySql.MysqlHelper.InformationSchema.TableUpdateTimeCacheAll

Datei anzeigen Open project: hthulin/csharp-mysql-helper-library

Public Methods

Method Description
HasChanged ( string database, string table, System.TimeSpan updateCacheIntervalTimeSpan, string askerId = null, bool returnFalseIfTableDoesNotExist = true ) : bool

Determains if a MyISAM table has been updated. Always returns true on first call. Keeps an cache of the entire update time information for all the tables. Answer is given in the context of the askerID, so this instance may be shared between multiple tasks.

SetMultiCon ( MultiCon multiCon ) : void

Sets current connection instance

TableUpdateTimeCacheAll ( System.Data.ConnectionString connectionString, string onlyCheckDatabase = null ) : System

Constructor for connection string

TableUpdateTimeCacheAll ( MultiCon multiCon, string onlyCheckDatabase = null ) : System

Constructor for connection instance

Method Details

HasChanged() public method

Determains if a MyISAM table has been updated. Always returns true on first call. Keeps an cache of the entire update time information for all the tables. Answer is given in the context of the askerID, so this instance may be shared between multiple tasks.
public HasChanged ( string database, string table, System.TimeSpan updateCacheIntervalTimeSpan, string askerId = null, bool returnFalseIfTableDoesNotExist = true ) : bool
database string
table string
updateCacheIntervalTimeSpan System.TimeSpan
askerId string
returnFalseIfTableDoesNotExist bool
return bool

SetMultiCon() public method

Sets current connection instance
public SetMultiCon ( MultiCon multiCon ) : void
multiCon MultiCon
return void

TableUpdateTimeCacheAll() public method

Constructor for connection string
public TableUpdateTimeCacheAll ( System.Data.ConnectionString connectionString, string onlyCheckDatabase = null ) : System
connectionString System.Data.ConnectionString
onlyCheckDatabase string
return System

TableUpdateTimeCacheAll() public method

Constructor for connection instance
public TableUpdateTimeCacheAll ( MultiCon multiCon, string onlyCheckDatabase = null ) : System
multiCon MultiCon
onlyCheckDatabase string
return System