script

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	File = "files"
)

Variables

This section is empty.

Functions

func ProjectInfoToTable

func ProjectInfoToTable(proj []*FileList)

Types

type FileList

type FileList struct {
	ProjectID    int64  `json:"project_id"`
	ProjectName  string `json:"project_name"`
	FileID       int64  `json:"file_id"`
	FileLocation string `json:"file_location"`
	SnippitName  string `json:"snippit_name"`
	SnippitID    int64  `json:"snippit_id"`
}

FileList represents a given SQL script

type Script

type Script interface {
	// List returns all scripts for a project
	List(project string) ([]*FileList, error)
	// Get returns a script for a given name
	Get(name string) (string, error)
	// Register registers a script
	Register(file string) error
}

Script represents the interface for interacting with SQL Scripts

func New

func New(url string) Script

New creates a new script object

Jump to

Keyboard shortcuts

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