Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoSuchColumnError ¶
NoSuchColumnError detect error from SQLite which describe "no such column".
Types ¶
type QueryRunner ¶
type QueryRunner struct {
// contains filtered or unexported fields
}
QueryRunner represents a query runner of jsqlite.
func NewWithDB ¶
func NewWithDB(db *sqlx.DB) *QueryRunner
NewWithDB creates a QueryRunner with the *sqlx.DB
func Read ¶
func Read(r io.Reader) (*QueryRunner, error)
Read creates a QueryRunner and read JSONL from io.Reader
func (*QueryRunner) Close ¶
func (r *QueryRunner) Close() error
Close closes a database and cleanup the database file if nessesary.
func (*QueryRunner) Read ¶
func (r *QueryRunner) Read(src io.Reader) error
Read reads JSONL via io.Reader, creates table on in-memory SQLite and inserts records.
func (*QueryRunner) ReadWithContext ¶
ReadWithContext reads JSONL via io.Reader, creates table on in-memory SQLite and inserts records with context.
Click to show internal directories.
Click to hide internal directories.