Documentation ¶
Index ¶
- func GenerateLoadColumnSpecSQL(column *apptypes.LoadColumn) string
- func GenerateLoadTableSpecCreateSQL(tableSpec *apptypes.TableSpec) string
- func GenerateLoadTableSpecIndexSQL(tableName string, indexColumns []string) (string, string)
- func InitializeRuntime(runtimeConfig *apptypes.RuntimeConfig) (*apptypes.MobsqlRuntime, error)
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 InitializeRuntime ¶
func InitializeRuntime(runtimeConfig *apptypes.RuntimeConfig) (*apptypes.MobsqlRuntime, error)
InitializeRuntime does 4 primary things:
- Opens the SQLite database - setting pragmas etc according
- Runs schema creation logic (e.g. create tables)
- Fetches from HTTP the Mobility Database CSV file & imports to _mdb table
- Returns the prepared 'runtime', returning MobsqlRuntime{} which all other APIs operate based on (which contains the opened DB)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.