Documentation
¶
Index ¶
Constants ¶
View Source
const ( DTypeInt = iota DTypeReal DTypeText DTypeID DTypeEnum )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedTable ¶
type FeedOpResult ¶ added in v0.6.0
type FeedOpResult struct { Operation string `json:"operation"` // Name of operation (compute/purge/load) Success bool `json:"success"` // Whether the operation was successful FeedIDs []int `json:"feed_ids"` // Array of feed IDs matched / performed against }
FeedOpResult represents the result of a Compute, Purge, or Load request exposing whether the operation was successful and the effected feedIDs.
type LoadColumn ¶
type LoadSchema ¶
type MobsqlRuntime ¶
type MobsqlRuntime struct { DB *sqlx.DB Schema LoadSchema SchemaExtra *SchemaExtra // Extra SQL schema configuration (views & computed tables config) }
type RuntimeConfig ¶
type RuntimeConfig struct { MobilityDBCatalogCSVURI string `json:"mdb_csv,omitempty"` // URI (file:// or http://) of Mobility Database Catalog CSV URI (use load custom GTFS), default Mobility DB bit.ly SQLiteDBPath string `json:"sqlite_db,omitempty"` // Filesystem path for the SQLite DB, if "" uses default of ~/.cache/mobsql/sqlite.db LogInfo bool `json:"log_info,omitempty"` // Whether to enable info messages LogWarn bool `json:"log_warn,omitempty"` // Whether to enable warning messages LogDebug bool `json:"log_debug,omitempty"` // Whether to enable debug messages Logger *log.Logger `json:"-"` // Custom *log.Logger to use instead of default stderr logging SchemaExtra *SchemaExtra `json:"-"` // Extra SQL schema configuration (views & computed tables config) }
RuntimeConfig contains the configuration for the Mobsql application passed on each operation.
type SchemaExtra ¶
type SchemaExtra struct { InitExec string // Arbitrary SQL to execute at initialization (can be used for pragmas etc.) TablesComputed []ComputedTable // Computed table specifications to create Views []View // SQL views to create }
SchemaExtra represents extra arbitrary SQL views & computed tables that may build upon the feed GTFS tables.
Click to show internal directories.
Click to hide internal directories.