Arangodb Graph Database Notes __ Database

Source: Internet
Author: User

Arangodb generating relationships through the collection of two document
For M in meridians
For P in acupoints
Filter P.meridian = = M.displayname
Insert {_from:p._id, _to:m._id, property: "\"} in relations

Import a CSV file exported from SQL database into Arangodb, one file per table

#!/bin/sh

# import CSV files data into Arangodb
# which name is like:  ' filename '. csv
# noock Tian
# 2 018-01-08

export csv_files= ' ls *.csv ' for
F in $CSV _files
do
        export ifs= ' \ '. '
        Arr= ($f)
        #echo @0=${arr[0]} @1=${arr[1]} @2=${arr[2]} @3=${arr[3]}
        export table=${arr[1]}
        echo " Importing $f ==> $Table ... "
        arangoimp--file" $f "  --type csv--collection $Table--create-collection true-- Server.Database TCM--server.username noock--server.password tdz done


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.