internal void PostProcessConfiguration() { SystemFunctions.AddSystemFunction(_options, "mt_immutable_timestamp", "text"); SystemFunctions.AddSystemFunction(_options, "mt_immutable_timestamptz", "text"); Add(SystemFunctions); Add(Transforms.As <IFeatureSchema>()); Add(_options.EventGraph); _features[typeof(StreamState)] = _options.EventGraph; _features[typeof(StreamAction)] = _options.EventGraph; _features[typeof(IEvent)] = _options.EventGraph; _mappings.Swap(d => d.AddOrUpdate(typeof(IEvent), new EventQueryMapping(_options))); foreach (var mapping in _documentMappings.Value.Enumerate().Select(x => x.Value)) { foreach (var subClass in mapping.SubClasses) { _mappings.Swap(d => d.AddOrUpdate(subClass.DocumentType, subClass)); _features[subClass.DocumentType] = subClass.Parent.Schema; } } }
internal StorageFeatures(StoreOptions options) { _options = options; SystemFunctions = new SystemFunctions(options); Transforms = options.Transforms.As <Transforms.Transforms>(); }
public StorageFeatures(StoreOptions options) { _options = options; SystemFunctions = new SystemFunctions(options); store(SystemFunctions); Transforms = options.Transforms.As <Transforms.Transforms>(); store(Transforms.As <IFeatureSchema>()); store(options.Events); _features[typeof(StreamState)] = options.Events; _features[typeof(EventStream)] = options.Events; _features[typeof(IEvent)] = options.Events; }
internal StorageFeatures(StoreOptions options) { _options = options; SystemFunctions = new SystemFunctions(options); }