mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-22 15:41:35 +03:00
a92b9abf34
* implementation work for json importers * json driver checkpoint * working on json.ParseObjectsInArray * json.ParseObjectsInArray seems to be working * checkpoint while tidying up ParseObjectsInArray * more tidy checkpoint * more tidy checkpoint 2 * tidying up ParseObjectsInArray * tidy up * code/docs cleanup * more cleanup of json driver * more cleanup of json driver * flat json import seemingly working * improvements to json driver * json writer now prints empty [] for postgres empty tables
40 lines
1.0 KiB
Go
40 lines
1.0 KiB
Go
// Package testsrc holds testing constants (in addition
|
|
// to pkg sakila).
|
|
package testsrc
|
|
|
|
// Handles for various test data sources.
|
|
const (
|
|
CSVPerson = "@csv_person"
|
|
CSVPersonBig = "@csv_person_big"
|
|
CSVPersonNoHeader = "@csv_person_noheader"
|
|
|
|
// PplUD is the handle of a user-defined "people" source.
|
|
PplUD = "@ud_ppl"
|
|
|
|
// RSSNYTLocalUD is the handle of a user-defined RSS source.
|
|
RSSNYTLocalUD = "@ud_rss_nytimes_local"
|
|
|
|
// MiscDB is the handle of a SQLite DB with misc testing data.
|
|
MiscDB = "@miscdb"
|
|
|
|
// EmptyDB is the handle of an empty SQLite DB.
|
|
EmptyDB = "@emptydb"
|
|
)
|
|
|
|
const (
|
|
// TblTypes is a table in MiscDB.
|
|
TblTypes = "tbl_types"
|
|
)
|
|
|
|
// Paths for various testdata.
|
|
const (
|
|
// PathSrcsConfig is the path of the yml file containing
|
|
// the test sources template config file.
|
|
PathSrcsConfig = "/testh/testdata/sources.sq.yml"
|
|
|
|
PathDriverDefPpl = "drivers/userdriver/xmlud/testdata/ppl.sq.yml"
|
|
PathDriverDefRSS = "drivers/userdriver/xmlud/testdata/rss.sq.yml"
|
|
|
|
PathXLSXTestHeader = "drivers/xlsx/testdata/test_header.xlsx"
|
|
)
|