# nv-remote-tree-db-cli

> nv-remote-tree-db-cli ====================== - cli tool

Latest version **1.0.22** (published 2022-10-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-remote-tree-db-cli
pnpm add nv-remote-tree-db-cli
yarn add nv-remote-tree-db-cli
bun add nv-remote-tree-db-cli
```

Provides the commands `nv_rtree_const`, `nv_rtree_creat`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.22 |
| Published | 2022-10-31 |
| First published | 2022-02-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-remote-tree-db-cli
- npm.io page: https://npm.io/package/nv-remote-tree-db-cli

## Dependencies (3)

- [nv-pg-fetch](https://npm.io/package/nv-pg-fetch.md) ^1.3.58
- [nv-cli-basic](https://npm.io/package/nv-cli-basic.md) ^1.0.5
- [nv-remote-tree-db-const](https://npm.io/package/nv-remote-tree-db-const.md) ^1.0.16

## Recent versions

- 1.0.22 (latest) — 2022-10-31
- 1.0.21 — 2022-07-24
- 1.0.19 — 2022-06-14
- 1.0.18 — 2022-06-05
- 1.0.17 — 2022-06-05
- 1.0.16 — 2022-06-05
- 1.0.15 — 2022-06-05
- 1.0.14 — 2022-06-05
- 1.0.13 — 2022-05-24
- 1.0.12 — 2022-05-24
- 1.0.11 — 2022-05-24
- 1.0.10 — 2022-05-24
- 1.0.9 — 2022-05-24
- 1.0.8 — 2022-02-12
- 1.0.7 — 2022-02-12
- … 6 more at https://npm.io/package/nv-remote-tree-db-cli/versions

## README

nv-remote-tree-db-cli
======================
- cli tool

install
=======
- npm install nv-remote-tree-db-cli 

usage
=====
    
     #  npm install nv-remote-tree-db-cli -g
     
#creat consts.js

        #nv_rtree_const -e  tag text   ftype integer compressed bool btype interger  stype interger  dtype bigint  hex_data text



        root@dev:/opt/JS/nv-remote-tree# cat consts.js
         ......

        module.exports = {
            ENBALE_PRIM_SRCH,
            PRIM_KEY,PRIM_SRCH_TYP,PRIM_TYP,
            INTERNAL_KS,INTERNAL_SRCH_TYPS,INTERNAL_TYPS,INTERNAL_CREAT_DICT,
            DATA_KS,DATA_SRCH_TYPS,DATA_TYPS,DATA_CREAT_DICT,
            DFLT_TAIL_KS,DFLT_TAIL_TYPS,DFLT_TAIL_SRCH_TYPS,DFLT_TAIL_CREAT_DICT,
            FULL_SRCH_KS,FULL_SRCH_TYPS,FULL_SRCH_TYPMP,
            INTERNAL_AND_DATA_CREAT_DICT,
            CNL,SQL_CNL_KSTR,CNL_TYPS,CNL_CREAT_DICT,
            reorder,
            creat_db_tem_dict,
            CONSTS,
        }
        .....
        root@dev:/opt/JS/nv-remote-tree#



#init and fill database


        Usage: nv_rtree_creat [options]
        Options:
            -s, --server            db host ip default 127.0.0.1
            -n, --name              db name
            -t, --table_name        table name
            -m, --max_size          max_size of forest, default 1000000
            -e, --external          external k t k t....
            -h, --help              usage


        #nv_rtree_creat -n jsonpg -t forest -e  tag text   ftype integer compressed bool btype integer  stype integer  dtype bigint  hex_data text


                jsonpg=# \d forest
                                  Table "public.forest"
                    Column     |  Type   | Collation | Nullable | Default 
                ---------------+---------+-----------+----------+---------
                 //// internal USING ,FOR tree-relation
                 id            | integer |           | not null | 
                 fc            | integer |           |          | 
                 rb            | integer |           |          | 
                 pr            | integer |           |          | 
                 lb            | integer |           |          | 
                 lc            | integer |           |          | 
                 
                 
                 ////----FOR write-lock/append-lock/disconn-lock/lsib-lock/rsib-lock/ance-lock SUPPORT 
                 ////----ALSO FOR rent-mode block-subtree SUPPORT ,SO 8bit not enough, USE i32
                 eflag         | integer |           |          | 


                 /////-------------FOR GRAPH UPSTREAM/DOWNSTREAM SUPPORT-----
                 link_to_ary   | jsonb   |           |          |           
                 link_from_ary | jsonb   |           |          | 
                 
                 
                 /////-------------FOR VFS SUPPORT------------------------------
                 tag           | text    |           |          | 
                 ftype         | integer |           |          | 
                 compressed    | boolean |           |          | 
                 btype         | integer |           |          | 
                 
                 
                 ////-------------FOR MAP JS-TYPE TO PGTYPE SUPPORT------------
                 stype         | integer |           |          | 
                 dtype         | bigint  |           |          | 
                 hex_data      | text    |           |          | 
                 /////

                 extra         | jsonb   |           | not null | 
                 created_at    | bigint  |           | not null | 
                 update_at     | bigint  |           | not null | 
                Indexes:
                    "forest_pkey" PRIMARY KEY, btree (id)
            
            
            jsonpg=# select count(1) from forest;
              count
            ---------
             1000000
            (1 row)

            jsonpg=#


LICENSE
=======
- ISC

---
_Source: https://npm.io/package/nv-remote-tree-db-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
