GithubHelp home page GithubHelp logo

gawie-yssel / dynamic-csv-generation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linx-software/dynamic-csv-generation

0.0 0.0 0.0 16 KB

This solution shows how you can dynamically generate a CSV based off a table name that you are passing in. It will dynamically compile the SQL using Linx expressions, and then create a CSV File.

Home Page: https://linx.software/

License: MIT License

dynamic-csv-generation's Introduction

Dynamic CSV Generator

Description

Generate a CSV file for a MS SQL Server table. The solution contains a single function that given a connection string, table name, and file path, will create a CSV file containing the contents of the table.

It uses Linx's capabilities to run dynamic queries and write to text files.

Usage

Try it out

Select the GenerateCSVFromTable function, click Debug, supply values for ConnectionString, TableName, and FilePath parameters, and click Start.

Use it in your own Linx solution

Copy GenerateCSVFromTable to your solution and call it from anywhere.

Limitations

Only works with MS SQL Server

To use it with other databases, change the connection type and SQL properties in the GetCSVHeader and GetCSVData functions.

Does not escape the delimiter and line feeds in source data

If the source data contains the delimiter and/or line feeds, the CSV file will be invalid. The function can be extended to cater for these scenarios.

Contributing

For questions please ask the Linx community.

License

MIT

dynamic-csv-generation's People

Contributors

gawie-yssel avatar shantoiet57 avatar

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.