Directories ¶
Path | Synopsis |
---|---|
Package cli implements sq's CLI.
|
Package cli implements sq's CLI. |
buildinfo
Package buildinfo hosts build info variables populated via ldflags.
|
Package buildinfo hosts build info variables populated via ldflags. |
cobraz
Package cobraz contains supplemental logic for dealing with spf13/cobra.
|
Package cobraz contains supplemental logic for dealing with spf13/cobra. |
config
Package config holds CLI configuration.
|
Package config holds CLI configuration. |
config/yamlstore
Package yamlstore contains an implementation of config.Store that uses YAML files for persistence.
|
Package yamlstore contains an implementation of config.Store that uses YAML files for persistence. |
config/yamlstore/upgrades/v0.34.0
Package v0_34_0 upgrades YAML config to v0.34.0.
|
Package v0_34_0 upgrades YAML config to v0.34.0. |
diff
Package diff contains the CLI's diff implementation.
|
Package diff contains the CLI's diff implementation. |
diff/internal/go-udiff
Package udiff computes differences between text files or strings.
|
Package udiff computes differences between text files or strings. |
diff/internal/go-udiff/difftest
Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by diff "github.com/neilotoole/sq/cli/diff/internal/go-udiff"
|
Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by diff "github.com/neilotoole/sq/cli/diff/internal/go-udiff" |
diff/internal/go-udiff/lcs
package lcs contains code to find longest-common-subsequences (and diffs)
|
package lcs contains code to find longest-common-subsequences (and diffs) |
diff/internal/go-udiff/myers
Package myers implements the Myers diff algorithm.
|
Package myers implements the Myers diff algorithm. |
flag
Package flag holds CLI flags.
|
Package flag holds CLI flags. |
hostinfo
Package hostinfo provides high-level details about the runtime OS.
|
Package hostinfo provides high-level details about the runtime OS. |
output
Package output provides interfaces and implementations for outputting data and messages.
|
Package output provides interfaces and implementations for outputting data and messages. |
output/csvw
Package csvw implements writers for CSV.
|
Package csvw implements writers for CSV. |
output/htmlw
Package htmlw implements a RecordWriter for HTML.
|
Package htmlw implements a RecordWriter for HTML. |
output/jsonw
Package jsonw implements output writers for JSON.
|
Package jsonw implements output writers for JSON. |
output/markdownw
Package markdownw implements writers for Markdown.
|
Package markdownw implements writers for Markdown. |
output/outputx
Package outputx contains extensions to pkg output, and helpers for implementing output writers.
|
Package outputx contains extensions to pkg output, and helpers for implementing output writers. |
output/tablew
Package tablew implements text table output writers.
|
Package tablew implements text table output writers. |
output/tablew/internal
Package tablewriter creates & generates text based table
|
Package tablewriter creates & generates text based table |
output/xlsxw
Package xlsxw implements output writers for Microsoft Excel.
|
Package xlsxw implements output writers for Microsoft Excel. |
output/xmlw
Package xmlw implements output writers for XML.
|
Package xmlw implements output writers for XML. |
output/yamlw
Package yamlw implements output writers for YAML.
|
Package yamlw implements output writers for YAML. |
run
Package run holds the run.Run construct, which encapsulates CLI state for a command execution.
|
Package run holds the run.Run construct, which encapsulates CLI state for a command execution. |
testrun
Package testrun contains helper functionality for executing CLI tests.
|
Package testrun contains helper functionality for executing CLI tests. |
Package drivers is the parent package of the concrete sq driver implementations.
|
Package drivers is the parent package of the concrete sq driver implementations. |
csv
Package csv implements the sq driver for CSV/TSV et al.
|
Package csv implements the sq driver for CSV/TSV et al. |
json
Package json implements the sq driver for JSON.
|
Package json implements the sq driver for JSON. |
postgres
Package postgres implements the sq driver for postgres.
|
Package postgres implements the sq driver for postgres. |
sqlite3
Package sqlite3 implements the sq driver for SQLite.
|
Package sqlite3 implements the sq driver for SQLite. |
sqlite3/internal/sqlparser
Package sqlparser contains SQL parsing functionality for SQLite.
|
Package sqlparser contains SQL parsing functionality for SQLite. |
sqlserver
Package sqlserver implements the sq driver for SQL Server.
|
Package sqlserver implements the sq driver for SQL Server. |
userdriver
Package userdriver implements the "user-driver" functionality that allows users to define source driver types declaratively.
|
Package userdriver implements the "user-driver" functionality that allows users to define source driver types declaratively. |
userdriver/xmlud
Package xmlud provides user driver XML import functionality.
|
Package xmlud provides user driver XML import functionality. |
xlsx
Package xlsx implements the sq driver for Microsoft Excel.
|
Package xlsx implements the sq driver for Microsoft Excel. |
Package libsq implements the core sq functionality.
|
Package libsq implements the core sq functionality. |
ast
Package ast holds types and functionality for the SLQ AST.
|
Package ast holds types and functionality for the SLQ AST. |
ast/render
Package render provides the mechanism for rendering ast into SQL.
|
Package render provides the mechanism for rendering ast into SQL. |
core
Package core contains only libsq core sub-packages.
|
Package core contains only libsq core sub-packages. |
core/cleanup
Package cleanup provides functionality for executing cleanup functions.
|
Package cleanup provides functionality for executing cleanup functions. |
core/errz
Package errz is sq's error package.
|
Package errz is sq's error package. |
core/ioz
Package ioz contains supplemental io functionality.
|
Package ioz contains supplemental io functionality. |
core/ioz/checksum
Package checksum provides functions for working with checksums.
|
Package checksum provides functions for working with checksums. |
core/ioz/contextio
Package contextio provides io decorators that are context-aware.
|
Package contextio provides io decorators that are context-aware. |
core/ioz/httpz
Package httpz provides functionality supplemental to stdlib http.
|
Package httpz provides functionality supplemental to stdlib http. |
core/ioz/lockfile
Package lockfile implements a pid lock file mechanism.
|
Package lockfile implements a pid lock file mechanism. |
core/jointype
Package jointype enumerates the various SQL JOIN types.
|
Package jointype enumerates the various SQL JOIN types. |
core/kind
Package kind encapsulates the notion of data "kind": that is, it is an abstraction over data types across implementations.
|
Package kind encapsulates the notion of data "kind": that is, it is an abstraction over data types across implementations. |
core/lg
Package lg contains utility functions for working with slog.
|
Package lg contains utility functions for working with slog. |
core/lg/devlog
Package devlog contains a custom slog.Handler for developer-friendly log output.
|
Package devlog contains a custom slog.Handler for developer-friendly log output. |
core/lg/lga
Package lga ("log attribute") holds constants for log attribute names.
|
Package lga ("log attribute") holds constants for log attribute names. |
core/lg/lgm
Package lgm ("log message") contains constants for log messages.
|
Package lgm ("log message") contains constants for log messages. |
core/lg/lgt
Package lgt provides a mechanism for getting a *slog.Logger that outputs to testing.T. See lgt.New.
|
Package lgt provides a mechanism for getting a *slog.Logger that outputs to testing.T. See lgt.New. |
core/lg/slogbuf
Package slogbuf implements a Buffer that stores log records that can later be replayed on a slog.Handler.
|
Package slogbuf implements a Buffer that stores log records that can later be replayed on a slog.Handler. |
core/lg/userlogdir
Package userlogdir has a single function, UserLogDir, that returns an OS-specific path for storing user logs.
|
Package userlogdir has a single function, UserLogDir, that returns an OS-specific path for storing user logs. |
core/loz
Package loz contains functionality supplemental to samber/lo.
|
Package loz contains functionality supplemental to samber/lo. |
core/options
Package options implements config options.
|
Package options implements config options. |
core/progress
Package progress contains progress bar widget functionality.
|
Package progress contains progress bar widget functionality. |
core/record
Package record holds the record.Record type, which is the core type for holding query results.
|
Package record holds the record.Record type, which is the core type for holding query results. |
core/retry
Package retry implements retry functionality.
|
Package retry implements retry functionality. |
core/schema
Package schema provides functionality for modeling SQL constructs.
|
Package schema provides functionality for modeling SQL constructs. |
core/sqlz
Package sqlz contains core types such as Kind and Record.
|
Package sqlz contains core types such as Kind and Record. |
core/stringz
Package stringz contains string functions similar in spirit to the stdlib strings package.
|
Package stringz contains string functions similar in spirit to the stdlib strings package. |
core/tablefq
Package tablefq is a tiny package that holds the tablefq.T type, which is a fully-qualified SQL table name.
|
Package tablefq is a tiny package that holds the tablefq.T type, which is a fully-qualified SQL table name. |
core/timez
Package timez contains time functionality.
|
Package timez contains time functionality. |
core/urlz
Package urlz contains URL utility functionality.
|
Package urlz contains URL utility functionality. |
driver/dialect
Package dialect contains functionality for SQL dialects.
|
Package dialect contains functionality for SQL dialects. |
files
Package files contains functionality for dealing with files, including remote files (e.g.
|
Package files contains functionality for dealing with files, including remote files (e.g. |
files/internal/downloader
Package downloader provides a mechanism for getting files from HTTP/S URLs, making use of a mostly RFC-compliant cache.
|
Package downloader provides a mechanism for getting files from HTTP/S URLs, making use of a mostly RFC-compliant cache. |
source
Package source provides functionality for dealing with data sources.
|
Package source provides functionality for dealing with data sources. |
source/drivertype
Package drivertype defines drivertype.Type, which is the type of a driver, e.g.
|
Package drivertype defines drivertype.Type, which is the type of a driver, e.g. |
source/location
Package location contains functionality related to source location.
|
Package location contains functionality related to source location. |
source/metadata
Package metadata contains types that model source metadata.
|
Package metadata contains types that model source metadata. |
Package testh (test helper) contains functionality for testing.
|
Package testh (test helper) contains functionality for testing. |
fixt
Package fixt contains common test fixture values.
|
Package fixt contains common test fixture values. |
proj
Package proj contains test utilities for dealing with project paths and the like.
|
Package proj contains test utilities for dealing with project paths and the like. |
sakila
Package sakila holds test constants and such for the sakila test sources.
|
Package sakila holds test constants and such for the sakila test sources. |
testsrc
Package testsrc holds testing constants (in addition to pkg sakila).
|
Package testsrc holds testing constants (in addition to pkg sakila). |
tu
Package tu contains basic generic test utilities.
|
Package tu contains basic generic test utilities. |
Click to show internal directories.
Click to hide internal directories.