question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement sql writer

See original GitHub issue

Overview

For now tabulator support only stream.save(format='csv') to csv format. It’s pretty easy to implement sql writer just porting writers.csv.CSVWriter to writers.sql.SQLWrter.

What we’re aiming for:

from tabulator import Stream

with Stream('data.xls', headers=1) as stream:
  stream.save('postgresql://user:pass@host:5432/database', table='excel_export')

And of course it will be a pretty cool and useful feature 👍

Plan

  • port writers.csv.CSVWriter to writers.sql.SQLWrter
  • register new writer in config.py
  • add writing tests to tests.formats.sql
  • mention writing ability in readme sql format section

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
eyalheicommented, Oct 12, 2019

Hi, I would like to take a crack at this, is that OK?

1reaction
danfowlercommented, May 30, 2017

@akariv thanks! That helps so much with understanding how these pieces fit together 😄 .

/me rushing off to add some SQL connections strings to some YAML

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Writer Service - SQL Server - Microsoft Learn
The SQL Writer Service provides added functionality for backup and restore of SQL Server through the Volume Shadow Copy Service framework. The ...
Read more >
How To: Configuration of SQL VSS writer to avoid SQL-VDI ...
This article describes how to correctly configure the Microsoft SQL VSS writer to avoid SQLVDI errors. If you are receiving SQL-VDI errors from ......
Read more >
The SQL Writer Tool - MC Trade - Zendesk
MC Trade runs on SQL, a powerful and flexible database structure that makes organizing and retrieving ... Follow these steps to use the...
Read more >
Best practices for writing SQL queries - Metabase
SQL best practices: a brief guide to writing better SQL queries. · Filter with WHERE before HAVING · Avoid functions on columns in...
Read more >
An Introductory SQL Tutorial: How to Write Simple Queries
Why Use SQL? ... SQL (often pronounced like “sequel”) stands for Structured Query Language, and it's used when companies have a ton of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found