public KsqlStore(KsqlQueryExecutor queryExecutor, Mapper <TValue> mapper, string stream, string table = null) { table ??= stream; _queryExecutor = queryExecutor; _mapper = mapper; _tableName = table; _consumer = new KsqlConsumer <TValue>(_queryExecutor, mapper, new KsqlQuery { Ksql = $"Select * from {stream} emit changes;" }); _consumer.Start(); }
public KsqlConsumer(KsqlQueryExecutor queryExecutor, Mapper <TValue> mapper, KsqlQuery query) { _queryExecutor = queryExecutor; _mapper = mapper; _query = query; }