Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to copy data between datasources #7

Open
mageddo opened this issue Jan 24, 2023 · 0 comments
Open

Ability to copy data between datasources #7

mageddo opened this issue Jan 24, 2023 · 0 comments

Comments

@mageddo
Copy link
Member

mageddo commented Jan 24, 2023

Description

Once connected to a database using CSV2JDBC, e.g. H2, I want to be able to use copy data across different databases:

  1. Be able to import data to the current database creating and insert data from a select from other database datasource
  2. Be able to export data from current database using a select and exporting to another database creating and inserting data there

Proposed command syntax:

Importing Data from an external datasource to current table

CSV2J COPY <table> 
FROM (<statement>) 
WITH DATASOURCE <datasourceName> [CREATE_TABLE]

Exporting Data from current datasource to another

CSV2J COPY (<statement>)  
TO <table>
WITH DATASOURCE <datasourceName>  [CREATE_TABLE]

Reference

  • Related use cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant