Documentation ¶
Overview ¶
Package db contains functions and data for inserting vehicle position data into a SQLite database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client for connecting to a SQLite database and inserting vehicle positions.
func (*Client) Initialize ¶
Initialize initializes the database for the client. If the necessary tables already exist, this is a no-op.
func (*Client) InsertVehiclePositions ¶
func (c *Client) InsertVehiclePositions(ctx context.Context, t time.Time, ps map[string][]transitview.VehiclePosition) error
InsertVehiclePositions inserts the given map of routes to vehicle positions as recorded at the given time into the database.
Click to show internal directories.
Click to hide internal directories.