vesoft-inc/nebula

enhance for "if not exists"

開放

#1,591 建立於 2020年1月6日

 (8 則留言) (0 個反應) (0 位負責人)C++ (1,144 個分叉)batch import
good first issueneed to discusstype/enhancement

倉庫指標

星標
 (9,828 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

  1. create an edgetype with prop
> create edge choose(grade int)
  1. create the edgetype without any prop using if not exists
> create edge if not exists choose()
Execution succeeded (Time spent: 12.129/13.466 ms)
  1. check the schema of choose
describe edge choose;
================
| Field | Type |
================
| grade | int  |
----------------
Got 1 rows (Time spent: 13.604/15.04 ms)

In step 2, maybe "the edgetype exists, we will not create" is more user-friendly than "Execution succeeded"

貢獻者指南