Change Password

Input error
Input error
Input error
Submit

Change Nickname

Current Nickname:
Submit
Search
v4.0
    v4.0

    Server Connection

    Connection Configuration

    The Configuration for connection and request to ultipa graph:

    Key Type Description
    hosts List[str] Ultipa Graph hosts list
    defaultGraph str defaul graphset name
    timeoutWithSeconds int the timeout seconds for any request
    responseWithRequestInfo bool if return request info
    consistency bool if use Consistency Read (true by default)
    uqlLoggerConfig LoggerConfig logger configuration
    heartBeat int the seconds of heartbeat to all instances, 0 means turn off heartbeat
    maxRecvSize int max byte when receive data
    Debug bool if open debug mode

    When setting Debug as True without setting uqlLoggerConfig, the SDK will initialize a uqlLoggerConfig for debugging and not write to file.

    LoggerConfig:

    Key Type Description
    name str logger 的名称
    fileName str 日志文件的名称
    isWriteToFile bool 是否将日志写进文件
    isStream bool 是否将日志输出到屏幕
    level logging 日志的等级,默认为 INFO

    RequestConfig:

    Key Type Description
    graphSetName str 当前请求使用的图集名
    timeoutWithSeconds int 当前请求的超时间
    retry Retry 请求失败重试配置
    stream bool 是否流式返回
    useHost str 向指定的主机发送请求
    useMaster bool 是否使用 leader 来保证读一致性

    Create Connection

    from ultipa import Connection
    from ultipa import UltipaConfig
    from ultipa.types.types import LoggerConfig
    defaultConfig = UltipaConfig()
    conn = Connection.GetConnection(hosts=["host:port"],username="root",
                                    password="root",defaultConfig=defaultConfig)
    

    Execute UQL

    from ultipa import Connection
    from ultipa import UltipaConfig,RequestConfig
    defaultConfig = UltipaConfig()
    conn = Connection.GetConnection(
                hosts=["host:port"],
                username="root", password="root",defaultConfig=defaultConfig)
    ret = conn.uql("find().nodes() as nodes return nodes{*} limit 10",RequestConfig())
    
    
    Please complete the following information to download this book
    *
    公司名称不能为空
    *
    公司邮箱必须填写
    *
    你的名字必须填写
    *
    你的电话必须填写
    *
    你的电话必须填写