SequoiaDB 巨杉数据库】help()示例

  1. 显示全局帮助信息。
> help()
  1. 显示类包含的的所有方法。
> Oma.help()
    --Constructor methods for class "Oma":
    var oma = new Oma([hostname],[svcname])
                          - Class for cluster management.
    --Static methods for class "Oma":
    Oma.addAOmaSvcName(<hostname>,<svcname>,[isReplace],[confFile])
                          - Specify the service name of sdbcm in target
                            host.
    Oma.delAOmaSvcName(hostname,[confFile])
                          - Delete the service name of sdbcm from its
                            configuration file in target host.
    Oma.getAOmaSvcName(hostname,[confFile])
                          - Get the service name of sdbcm in target host.
    ...
  1. 显示对象包含的所有方法。
> var oma = new Oma()
> oma.help()
    --Instance methods for class "Oma":
    close()              - Close the Oma object.
    createCoord(<svcname>,<dbpath>,[config])
                         - Create a coord node in target host of sdbcm.
    createData(<svcname>,<dbpath>,[config])
                         - Create a standalone node in target host of
                           sdbcm.
    ...
  1. 查看具体方法的详细帮助文档。
> help("createCS")

createCS(1)                       Version 2.8                      createCS(1)

NAME
    createCS - Create a collection space in current database.

SYNOPSIS
    db.createCS(<name>,[options])

CATEGORY
    Sequoiadb

DESCRIPTION
    Create a collection space in a database instance.

    name (string)
            Collection space name. Collection space name should be
            unique to each other in a database instance.
...
  1. 查询具体类或者对象具体方法的详细帮助文档。
> var db = new Sdb()
> db.sample.help("createCL") // 或者 SdbCS.help("createCL")

createCL(1)                       Version 2.8                      createCL(1)

NAME
    createCL - create a new collection.

SYNOPSIS
    db.collectionspace.createCL(<name>,[option])

CATEGORY
    Collection Space

DESCRIPTION
    Create a collection in a specified collection space.  Collection is a
    logical object which stores records.  Each record should belong to one
    and only one collection.

PARAMETERS
    * name ( String , Required )

        The name of the collection, should be unique to each other in a
        collection space.

...

了解更多请点击巨杉数据库官网

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值