sqlutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 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.

Jump to

Keyboard shortcuts

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