Change Password

Please enter the password.
Please enter the password. Between 8-64 characters. Not identical to your email address. Contain at least 3 of: uppercase, lowercase, numbers, and special characters.
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Apply New License

License Detail

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

The MAC address of the server you want to deploy.

Please complete this required field.

Please complete this required field.

Cancel
Apply
ID
Product
Status
Cores
Applied Validity Period(days)
Effective Date
Excpired Date
Mac Address
Apply Comment
Review Comment
Close
Profile
  • Full Name:
  • Phone:
  • Company:
  • Company Email:
  • Country:
  • Language:
Change Password
Apply

You have no license application record.

Apply
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

Product Created On ID Amount (USD) Invoice
Product Created On ID Amount (USD) Invoice

No Invoice

Search

      Others

      This section introduces methods on a Connection object for checking the database server statistics and the driver connection.

      Each example focuses solely on the method's usage. For a complete code example, please refer to the full example.

      stats()

      Retrieves database server statistics.

      Parameters:

      • RequestConfig (Optional): Configuration settings for the request.

      Returns:

      • Stat: The retrieved server statistics.

      let resp = await conn.stats();
      console.log("CPU usage:", resp.data.cpuUsage);
      console.log("Memory usage:", resp.data.memUsage);
      console.log("Expiration date:", resp.data.expiredDate);
      console.log("CPU cores:", resp.data["cpuCores"]),
      console.log("Company:", resp.data["company"]),
      console.log("Server type:", resp.data["serverType"]),
      console.log("Version:", resp.data["version"]);
      

      CPU usage: 12.503961
      Memory usage: 10356.265625
      Expiration date: Thu Dec 26 23:59:59 2024
      CPU cores: 80
      Company: ultipa
      Server type: CT
      Version: htap_beta.4.5.5-b4.5.0-tv-ui
      

      test()

      Tests driver and database server connection.

      Parameters:

      • RequestConfig (Optional): Configuration settings for the request.

      Returns:

      • boolean: Result of the request.

      let resp = await conn.test();
      console.log(resp);
      

      true
      

      Full Example

      import { ConnectionPool, ULTIPA } from "@ultipa-graph/ultipa-node-sdk";
      import { GraphExra } from "@ultipa-graph/ultipa-node-sdk/dist/connection/extra/graph.extra";
      import { getEdgesPrintInfo } from "@ultipa-graph/ultipa-node-sdk/dist/printers/edge";
      import { RequestType } from "@ultipa-graph/ultipa-node-sdk/dist/types";
      import { ListFormat } from "typescript";
      
      let sdkUsage = async () => {
        // Connection configurations
        //URI example: hosts="mqj4zouys.us-east-1.cloud.ultipa.com:60010"
        let hosts = [
          "192.168.1.85:60061",
          "192.168.1.86:60061",
          "192.168.1.87:60061",
        ];
        let username = "***";
        let password = "***";
        let connPool = new ConnectionPool(hosts, username, password);
      
        // Establishes connection to the database
        let conn = await connPool.getActive();
        let isSuccess = await conn.test();
        console.log(isSuccess);
      
        // Request configurations
        let requestConfig = <RequestType.RequestConfig>{
          useMaster: true,
        };
      
        // Test connection
        let resp = await conn.test();
        console.log(resp);  
      };
      
      sdkUsage().then(console.log).catch(console.log);
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写