Example #1
0
        public FollowSnapshotStorage(FollowStorageOptions config)
        {
            this.config = config;
            var followStateTable = config.FollowSnapshotTable;

            deleteSql  = $"DELETE FROM {followStateTable} where stateid=@StateId";
            getByIdSql = $"select * FROM {followStateTable} where stateid=@StateId";
            insertSql  = $"INSERT into {followStateTable}(stateid,version,StartTimestamp)VALUES(@StateId,@Version,@StartTimestamp)";
            updateSql  = $"update {followStateTable} set version=@Version,StartTimestamp=@StartTimestamp where stateid=@StateId";
            updateStartTimestampSql = $"update {followStateTable} set StartTimestamp=@StartTimestamp where stateid=@StateId";
        }
Example #2
0
 public FollowSnapshotStorage(FollowStorageOptions table)
 {
     grainConfig = table;
 }