package csvdriver
import "go-hep.org/x/hep/csvutil/csvdriver"
package csvdriver registers a database/sql/driver.Driver implementation for CSV files.
Index ¶
Functions ¶
func Create ¶
Create is a CSV-driver helper function for sql.Open.
It creates a new CSV file, connected via the csvdriver.
func Open ¶
Open is a CSV-driver helper function for sql.Open.
It opens a database connection to csvdriver.
Types ¶
type Conn ¶
type Conn struct { File string `json:"file"` // name of the file to be open Mode int `json:"mode"` // r/w mode (default: read-only) Perm os.FileMode `json:"perm"` // file permissions Comma rune `json:"comma"` // field delimiter (default: ',') Comment rune `json:"comment"` // comment character for start of line (default: '#') Header bool `json:"header"` // whether the CSV-file has a column header Names []string `json:"names"` // column names }
Conn describes how a connection to the CSV-driver should be established.
func (Conn) Open ¶
Open opens a database connection with the CSV driver.
Source Files ¶
driver.go import.go
- Version
- v0.36.0 (latest)
- Published
- Nov 15, 2024
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 1 day ago –
Tools for package owners.