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

Import from and export to other Databases #49

Closed
amark opened this issue May 7, 2015 · 3 comments
Closed

Import from and export to other Databases #49

amark opened this issue May 7, 2015 · 3 comments

Comments

@amark
Copy link
Owner

amark commented May 7, 2015

If we write an import feature from other databases to GUN we might want to prioritize something like Hadoop/Hive (or DAT?) or something like that. Because people are already probably using that and Hadoop has already built the drivers/import code for them for all other existing databases.

This way we can then use Hadoop to (practically speaking) import data from every where else.

Although I honestly don't think people should bother migrating into GUN. Why? Because data is the life blood of your app, so your entire app was probably built around the database, and converting/migrating is painful. GUN is forward facing for new apps, but people might be desperate enough from the hurt of their current system that they might want to do it anyways... and it would be nice to allow them to do so in a easier manner.

@metasean metasean changed the title Import from other Databases Import from and exprt to other Databases Oct 21, 2015
@metasean metasean changed the title Import from and exprt to other Databases Import from and export to other Databases Oct 21, 2015
@metasean
Copy link
Collaborator

Metabase looks like a cool tool to interact with existing datasources.
They currently work with: 1) H2
2) MongoDB
3) MySQL
4) Postgres

http://www.metabase.com/docs/v0.12.0/administration-guide/01-managing-databases.html

This might also be something we want to add support for.

@wanghaisheng
Copy link

anything update

@amark
Copy link
Owner Author

amark commented Dec 21, 2017

@wanghaisheng should be easy to do something yourself, like:

Note: pseudo-code

sql("SELECT * FROM users" , function(data){
  data.forEach(function(record){
    gun.get('users').set(record);
  });
});

But we won't be supporting database-specific import systems.

If you build one, add it to the wiki!!! I'm sure others would love this.

If you don't care about import/export, but want gun to use another database as its storage engine, check out https://github.com/sjones6/gun-flint .

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

No branches or pull requests

3 participants