Documentation ¶
Overview ¶
package csvdriver registers a database/sql/driver.Driver implementation for CSV files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create is a CSV-driver helper function for sql.Open.
It creates a new CSV file, connected via the 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.
Click to show internal directories.
Click to hide internal directories.