Giter Site home page Giter Site logo

Comments (12)

basememara avatar basememara commented on August 19, 2024 1

Seems like it's only possible to import one table only. Importing another CSV file to create/populate another table overwrites the previous database.

The XSLX is able to create multiple tables, but doesn't populate any of them.

Also, no way to specify the schema? It creates all columns as strings.

Am I missing something or is this almost useful?

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024 1

Hi @basememara!

Thanks for the feedback! The importing/exporting components of the Browser are actually maintained in a separate project named the Realm Converter.

The converter is still heavily under construction (Each format is at varying levels right now), so if there's any particular feature/fix you'd like, please file them as issues over in that repo. :)

Thanks a lot!

from realm-browser-osx.

lidemin avatar lidemin commented on August 19, 2024

+1. Really need it . Especially when we want to deliver app with db files.

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

Thanks for that!

Are there any particular formats there you're interested in? I'm still wondering which ones to prioritize.

from realm-browser-osx.

lidemin avatar lidemin commented on August 19, 2024

@TimOliver Thanks! Actually I was trying to use some CSV data and found that Realm Browser does not support it now. Really appreciate it.

from realm-browser-osx.

muenchdo avatar muenchdo commented on August 19, 2024

Is there a workaround to export the Realm data as CSV/JSON/whatever until the Realm Browser supports this?

from realm-browser-osx.

jpsim avatar jpsim commented on August 19, 2024

@muenchdo until the Realm browser supports this natively, you could write an app to convert the data using a Realm binding (Realm Cocoa or Realm Java).

from realm-browser-osx.

beveradb avatar beveradb commented on August 19, 2024

We badly need this. Any kind of structured export would be better than nothing - CSV or JSON sound sensible to me, whatever is easier to implement.

I've tried writing a CSV export app in Java with realm-java, but hit issues with Android dependencies. I'll give it another go this evening and share if I get anywhere.

In the meanwhile, because all our data is stored as JSON as strings in our Realm databases anyway, I've just been using a little bash script to pull out anything in curly braces and dump it in a file...

cat REALM_DATABASE_FILENAME | grep -aoE '\{..+?\}' | split -l 1 - realmdata; 

for file in realmdata*
do
    cat $file | sed 's/\\//g' > $file.txt;
    rm $file; 
done

from realm-browser-osx.

alazier avatar alazier commented on August 19, 2024

What is the timeline for building this? There have been a few react-native users asking for JSON import support.

from realm-browser-osx.

jpsim avatar jpsim commented on August 19, 2024

A primitive version of this should be super easy to build, I don't know why it's been pushed off for so long. I'm assigning myself to this.

from realm-browser-osx.

jpsim avatar jpsim commented on August 19, 2024

a json importer was added in realm/realm-cocoa-converter#16. we can keep this open until an exporter is also added, and of course, until these are integrated into the browser.

from realm-browser-osx.

rickrvo avatar rickrvo commented on August 19, 2024

any updates on this feature?

from realm-browser-osx.

Related Issues (20)

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.