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
Click to show internal directories.
Click to hide internal directories.