enableActivePartition

Syntax

enableActivePartition(db, activeDate, siteAlias)

Arguments

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.

Details

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

Examples

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