enableActivePartition

Syntax

enableActivePartition(db, activeDate, siteAlias)

Details

Establish a connection between the active database and the historical database.

Parameters

db is the handle of the historical database.

activeDate is the date of the active database.

setAlias is the node alias for the active database.

Returns

None.

Examples

histdb = database("C:\DolphinDBDemo\example\data\dbspace\historical-A\Trades2ndDomain")
activeNodeAlias = getNodeAlias()
activeDate = today()
enableActivePartition(histdb, activeDate, activeNodeAlias);