sql2xlsx

package module
v0.0.0-...-14af065 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2018 License: MIT Imports: 4 Imported by: 1

README

sql2xlsx

Go report Discord Gophers

A simple program to convert SQL rows into Microsoft Excel XLSX files.

This example is built to work with MS SQL driver however it can easily be modified to function with any other Go SQL driver.

For help with this program or general Go discussion, please join the Discord Gophers chat server.

Install & Build

This assumes you already have a working Go environment, if not please see this page first.

go get https://github.com/bwmarrin/sql2xlsx.git
cd sql2xlsx
go build

Usage

All options are required.

Usage of ./sql2xlsx:
  -h string
        SQL Server hostname or IP
  -u string
        User ID
  -p string
        Password
  -s string
        SQL Query filename
  -o string
        Output filename

Other handy tools

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateXLSXFromRows

func GenerateXLSXFromRows(rows *sql.Rows, outf string, writeheader bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL