DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Data Annotation's Essential Role in Machine Learning Success
  • Auditing Spring Boot Using JPA, Hibernate, and Spring Data JPA
  • OneStream Fast Data Extracts APIs
  • Artificial Intelligence (AI) Utilizing Deep Learning Techniques to Enhance ADAS

Trending

  • Getting Started With Prometheus Workshop: Instrumenting Applications
  • Microservices With Apache Camel and Quarkus (Part 5)
  • How To Validate Archives and Identify Invalid Documents in Java
  • Choosing the Appropriate AWS Load Balancer: ALB vs. NLB
  1. DZone
  2. Data Engineering
  3. Data
  4. RavenDB 2.5 Features: Import Data to Excel

RavenDB 2.5 Features: Import Data to Excel

Oren Eini user avatar by
Oren Eini
·
May. 07, 13 · Interview
Like (0)
Save
Tweet
Share
2.15K Views

Join the DZone community and get the full member experience.

Join For Free

i wonder what it says about ravendb that we spend time doing excel integration smile .

at any rate, we have the following documents inside ravendb:

image

and we want to get this data into excel. not only that, but we want this to be something more than just a flat file. we want something that will auto update itself.

we start by defining the shape of the output, using a transformer.

image

then we go an visit the following url:

http://localhost:8080/databases/musicbox/streams/query/raven/documentsbyentityname?query=tag:albums&resultstransformer=albums/shapedforexcel&format=excel

  • http://localhost:8080/databases/musicbox – the server & database that we are querying.
  • streams/query/raven/documentsbyentityname?query=tag:albums – stream the results of querying the index raven/documentsbyentityname for all tag:albums (effectively, give me all the albums).
  • resultstransformer=albums/shapedforexcel – transform the results using the specified transformer.
  • format=excel – output this in a format that excel will find easy to understand

the output looks like this:

image

now, let us take this baby and push this to excel. we create a new document, and then go to the data tab, and then to from text:

image

we have a file open dialog, and we paste the previous url as the source, then hit enter.

image

we have to deal with the import wizard, just hit next on the first page.

image

we mark the input as comma delimited, and then hit finish.

image

we now need to select where it would go on the document:

image

and now we have the data inside excel:

image

we aren’t done yet, we have the data in, now we need to tell excel to refresh it:

image

click on the connections button, where you’ll see something like this:

image

go to properties:

image

  • uncheck prompt for file name on refresh
  • check refresh data when opening the file

close the file, go to your database and change something. open the file again, and you can see the new values in there.

you have now create an excel file that can automatically pull data from ravendb and give your users immediate access to the data in a format that they are very comfortable with.

Data (computing)

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Data Annotation's Essential Role in Machine Learning Success
  • Auditing Spring Boot Using JPA, Hibernate, and Spring Data JPA
  • OneStream Fast Data Extracts APIs
  • Artificial Intelligence (AI) Utilizing Deep Learning Techniques to Enhance ADAS

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: