Top 1.9% dependent repos on proxy.golang.org
proxy.golang.org : github.com/invertedv/chutils
Package chutils is a set of utilities designed to work with ClickHouse. The utilities are designed to facilitate import and export of data. The chutils package facilitates these types of functions. The principal use cases are: Why is use case 3 helpful? The chutils package defines: The file package implements Input and Output for text files. The sql package implements Input and Output for SQL. These two packages can be mixed and matched for Input/Output. Load a CSV to ClickHouse -- Option 1 (see Example in package file) a. Define a file Reader to point to the CSV. b. Use Init to create the TableDef and then Impute to determine the fields and types. c. Use the Create method of TableDef to create the ClickHouse table to populate. d. Run TableSpecs().Check() to verify the TableSpec is set up correctly. e. Define a file Writer that points a temporary file. f. Use chutils Export to create a temporary file that uses the Reader/Writer. g. Use the Writer Insert method to issue a command to clickhouse-client to load the temporary file. Load a CSV to ClickHouse -- Option 2 (see Example in package sql). a. same as a, above. b. same as b, above. c. same as c, above. d. same as d, above. e. Define an SQL Writer that points to the table to populate. f. Use chutils Export to create a VALUES insert statement. g. Use the Writer Insert statement to execute the Insert. Insert to a ClickHouse table from a ClickHouse query -- Option 1. a. Define an sql Reader to define the source query. b. Use Init to define the TableDef and Create to create the output table. c. Run TableSpec().Check() to make sure the TableSpec is set up correctly. d. Use Insert to execute the insert query. (Note, there is no data validation). Insert to a ClickHouse table from a ClickHouse query -- Option 2. a. Same as a, above. b. Same as b, above. c. Run TableSpec().Check() to make sure the TableSpec is set up correctly. d. Define an sql Writer that points to the table to populate. e. Use chutils Export to create the VALUEs statement that is used to insert into the table. f. Use the Writer Insert statement to execute the Insert. (Note, there *is* data validation).
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/invertedv/chutils
Keywords:
clickhouse
, data
, go
, golang
, sql
License: Apache-2.0
Latest release: about 1 year ago
First release: almost 3 years ago
Namespace: github.com/invertedv
Dependent packages: 10
Dependent repositories: 9
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 29 days ago
github.com/invertedv/utilities v0.1.37
Helpful functions I keep re-creating37 versions - Latest release: about 1 year ago - 3 dependent packages - 0 stars on GitHub
github.com/invertedv/toch v0.0.8
toch moves data from files and the web into ClickHouse. Features of toch include: Multiple data ...6 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/invertedv/sampler v0.0.13
Package sampler produces strats and stratified samples. The package works with ClickHouse tables...13 versions - Latest release: over 1 year ago - 2 dependent packages - 1 dependent repositories - 0 stars on GitHub
github.com/invertedv/describe v0.0.8
Package describe generates descriptive plots of ClickHouse tables and query results. There are tw...8 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/invertedv/fannie v1.0.2
Package fannie loads the standard, HARP and non-standard (excluded) loans made available by Fanni...3 versions - Latest release: about 2 years ago - 0 stars on GitHub
github.com/invertedv/moru v0.0.4
Package moru provides functions to run the models created by goMortgage. Using moru is quite str...4 versions - Latest release: about 2 years ago - 0 stars on GitHub
github.com/invertedv/gomortgage v0.0.2
app to build mortgage forecasting models2 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/invertedv/goMortgage v0.0.2
app to build mortgage forecasting models2 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/invertedv/assemble v0.0.4
package income handles pulling zip-level income distribution published by the irs3 versions - Latest release: over 2 years ago
github.com/invertedv/freddie v1.0.1
package freddie. This package imports the loan-level residential mortgage data provided by Fredd...4 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/invertedv/fred2ch v0.0.4
Command fred2ch is a simple command that pulls a single series from the St Louis Federal Reserve ...3 versions - Latest release: almost 3 years ago - 0 stars on GitHub
Check this option to include packages that no longer depend on this package in their latest version but previously did.