apiinit

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLoadColumnSpecSQL

func GenerateLoadColumnSpecSQL(column *apptypes.LoadColumn) string

GenerateLoadColumnSpecSQL generates the SQL associated with a LoadColumn specification

func GenerateLoadTableSpecCreateSQL

func GenerateLoadTableSpecCreateSQL(tableSpec *apptypes.TableSpec) string

func GenerateLoadTableSpecIndexSQL

func GenerateLoadTableSpecIndexSQL(tableName string, indexColumns []string) (string, string)

func InitializeRuntime

func InitializeRuntime(runtimeConfig *apptypes.RuntimeConfig) (*apptypes.MobsqlRuntime, error)

InitializeRuntime does 4 primary things:

  1. Opens the SQLite database - setting pragmas etc according
  2. Runs schema creation logic (e.g. create tables)
  3. Fetches from HTTP the Mobility Database CSV file & imports to _mdb table
  4. Returns the prepared 'runtime', returning MobsqlRuntime{} which all other APIs operate based on (which contains the opened DB)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL