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 alias of the node for the active database.
Details
Create 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);