thingworx-field-work / ThingworxVSCodeProject

Develop thingworx models using a real IDE
MIT License
33 stars 17 forks source link

Option to specify persistence provider in value stream and streams #36

Closed thomas-thomas-tfs closed 3 years ago

thomas-thomas-tfs commented 3 years ago

how to mention persistence provider to be used for streams and value stream

BogdanMihaiciuc commented 3 years ago

You should be able to specify this via the @config decorator, since the persistence provider is actually saved in a configuration table. The syntax would look like this:

@config({
    DataThingSettings: { persistenceProvider: 'MyPersistenceProvider' }
})
@ThingDefinition class MyStream extends Stream<MyDataShape> {
    // class members...
}