Interface that may be used to add custom type definitions to the set of
values allowed by FieldValue type. For example, when using 3rd
party number library (see DBNumberConfig) you can use this
interface to include the 3rd party number type as an allowed
FieldValue in order to avoid compilation errors. For this, define
dbNumber property as shown in the example below.
Use module agumentation to add custom type definitions via this interface
as shown in the example. Note that it should be sufficient to augment
oracle-nosql module only once for your application project.
Example
Using CustomFieldTypes interface for 3rd party number support.
asyncfunctiontest(client: NoSQLClient): Promise<void> { ..... // Ok to use Decimal instance as field value constres = awaitclient.put("my_table", { partNo:1000, price:newDecimal(123.45) }); ..... }
Typescript-specific.
Interface that may be used to add custom type definitions to the set of values allowed by FieldValue type. For example, when using 3rd party number library (see DBNumberConfig) you can use this interface to include the 3rd party number type as an allowed FieldValue in order to avoid compilation errors. For this, define dbNumber property as shown in the example below.
Use module agumentation to add custom type definitions via this interface as shown in the example. Note that it should be sufficient to augment oracle-nosql module only once for your application project.
Example
Using CustomFieldTypes interface for 3rd party number support.
See