sqlutils

package
Version: v0.0.0-...-5c63435 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sqlutils contains utility functions for manipulating strings of SQL

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllStatements

func AllStatements(script string) (ret []string)

AllStatements takes a sql script, possibly containing comments and multiple statements, and returns a slice of strings that correspond to each individual SQL statement within the script

func RemoveComments

func RemoveComments(script string) string

RemoveComments trims out any comment blocks or lines from the provided SQL script

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL