「SequoiaDB巨杉数据库」help()

本文档介绍了SequoiaDB巨杉数据库的帮助系统,包括全局帮助信息、类和对象的帮助信息,以及如何查看特定方法的详细文档。通过`help()`函数,用户可以获取构造器、静态方法、实例方法等各类帮助信息,例如创建集合空间、查询服务名等操作。
摘要由CSDN通过智能技术生成

名称

help - 显示帮助信息。

语法

help()

help(<method>)

类别

Global

描述

在全局范围内显示帮助信息:

  • help() - 显示全局的帮助信息。

  • help(<method>) - 显示具体方法的详细文档信息。

另外,也可以在类和对象范围查看帮助信息:

  • <class>.help() - 显示该类或对象包含的所有方法。

  • <class>.help(<method>) - 显示类或对象具体方法的详细文档信息。

参数

  • class ( Object, 必填 )

    javascript 类或者对象。

  • method ( String, 必填 )

    类或者对象的方法名。

返回值

帮助信息。

错误

无。

版本

v1.0及以上版本。

示例

  1. 显示全局帮助信息。

    > help()

     

  2. 显示类包含的的所有方法。

    > 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.
        ...

     

  3. 显示对象包含的所有方法。

    > 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.
        ...

     

  4. 查看具体方法的详细帮助文档。

    > 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.
    ...

     

  5. 查询具体类或者对象具体方法的详细帮助文档。

    > 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.
    
    ...

相关文章请点击阅读 

「SequoiaDB巨杉数据库」SQL语法-运算符 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值