Skip to content

lib-proj 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793226355/FIN+5.3.1+lib-proj 中文整理基于 FIN 5.3.1

导读: 项目管理模块

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​


概述(中译) ​

项目管理模块


API 正文(英文) ​

tags ​

readRouteStatusProject cluster route status for reads
routeStatusProject cluster route status

funcs ​

folioBackupAsynchronously kick off a new backup for current project
folioBackupCleanupDelete all backups older than the given duration or date
folioBackupDeleteDelete a backup file by its timestamp
folioBackupsList all the backups for the current project
folioEmptyTrashDelete all the records marked with trash tag
projRebuildRebuild the current project in-place

views ​

projsView and manage the projects visible to the current node


def ​

func:folioBackup ​

folioBackup() ​

Asynchronously kick off a new backup for current project. Requires admin permission. See Proj.backup To run a snapshot a background job use jobFolioBackup(). Return a future to track completion of the backup. The future's result value is subject to change.


meta ​

admin✓
confirm
deffunc:folioBackup
disKeyui::backup
isfunc
liblib:proj
namefolioBackup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:folioBackupCleanup ​

folioBackupCleanup(dateOrAge) ​

Delete all backups older than the given duration or date. Requires admin permission.

Examples:

folioBackupCleanup(15day)       // delete all backups older than 15 days
folioBackupCleanup(2017-11-15)  // delete all backups before given date

meta ​

admin✓
deffunc:folioBackupCleanup
isfunc
liblib:proj
namefolioBackupCleanup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:folioBackupDelete ​

folioBackupDelete(ts) ​

Delete a backup file by its timestamp. Return true if backup found and deleted or false otherwise. Requires admin permission.


meta ​

admin✓
confirm
deffunc:folioBackupDelete
disKeyui::delete
isfunc
liblib:proj
multi✓
namefolioBackupDelete
select✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:folioBackups ​

folioBackups() ​

List all the backups for the current project:

  • ts: timestamp of backup
  • size: size in bytes of backup

meta ​

admin✓
deffunc:folioBackups
isfunc
liblib:proj
namefolioBackups

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:folioEmptyTrash ​

folioEmptyTrash() ​

Delete all the records marked with trash tag. See Proj.emptyTrash


meta ​

admin✓
deffunc:folioEmptyTrash
isfunc
liblib:proj
namefolioEmptyTrash

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:projRebuild ​

projRebuild(opts: {}) ​

Rebuild the current project in-place. This operation will shutdown the project, then rebuild it by copying all recs and re-writing all history. It supports the following options:

  • hisPageSize: (Duration) - the hisPageSize to use when re-writing the history. If not specified, the current hisPageSize is used.

Returns a Future that will be completed when the rebuild is finished. This operation could take a long time for large databases.


meta ​

deffunc:projRebuild
isfunc
liblib:proj
nameprojRebuild
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

readRouteStatus ​

Project cluster route status for reads


meta ​

defreadRouteStatus
enumSee below
isrouteStatus
liblib:proj
transient✓

enum ​

okAll is okay
faultConfiguration problem
downCommunication or network problem

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters
routeStatusProject cluster route status


def ​

routeStatus ​

Project cluster route status


meta ​

defrouteStatus
enumSee below
isstr
liblib:proj
transient✓

enum ​

okAll is okay
faultConfiguration problem
downCommunication or network problem

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters

subtypes ​

readRouteStatusProject cluster route status for reads


def ​

view:projs ​

View and manage the projects visible to the current node


meta ​

appNamehost
defview:projs
disKeyui::projs
iconview
isview
liblib:proj
order100
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view:      {inherit:"table"}
new:       {action:"projNew"}
demogen:   {disKey:"ui::demogen" action:"uiMisc::ProjDemogen.open" }
rename:    {action:"projRename"}
delete:    {action:"projDelete"}
details:   {action:"projDetails"}
backup:    {action:"projBackup"}
replicate: {action:"projReplicate"}
data:      {expr:"projs()"}