Giter VIP home page Giter VIP logo

sqltocypher's Introduction

what does it do

It will convert a sql file containing 'InsertInto' statements to cypher text

how to config it

Appart from the path to the sql file you also need to provide 3 dictionaries with configurations:

tables_to_convert_to_nodes

tables_to_convert_to_nodes

  1. Table name in sql that should be converted to a cypher node
  2. Id column in sql. The value of this column will be used as the cypher node identifier.
  3. Node name in cypher text

foreign_key_relationship_tables

foreign_key_relationship_tables

This config dictionary is only required if there are foreign key relationships in the sql file. Each item in this config relates to a cypher relationship to be generated.

  1. Table name in sql that has a foreign key
  2. Id column (doesnt need to be in the same table as 1.) of which the value relates to a cypher Node identifier. Is used as the source of the relationship
  3. Id column (doesnt need to be in the same table as 1.) of which the value relates to a cypher Node identifier. Is used as the destination of the relationship
  4. Node name in cypher text. Will be written as all upper case.
  5. Column in sql in table 1. which should not be converted to a attribute in cypher text. Can be used to not convert the foreign key column

many_to_many_relationship_tables

many_to_many_relationship_tables

This config dictionary is only required if there are many to many relationship tables in the sql file. Each item in this config relates to a cypher relationship to be generated.

  1. Table name in sql that is a many to many relationship table
  2. Id column in table 1. of which the value relates to a cypher Node identifier. Is used as the source of the relationship
  3. Id column in table 1. of which the value relates to a cypher Node identifier. Is used as the destination of the relationship
  4. Node name in cypher text. Will be written as all upper case

sqltocypher's People

Contributors

wtjerry avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.