Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTransferParams ¶
type CreateTransferParams struct { ID int32 `db:"id"` FromStopID sql.NullString `db:"from_stop_id"` ToStopID sql.NullString `db:"to_stop_id"` FromRouteID sql.NullString `db:"from_route_id"` ToRouteID sql.NullString `db:"to_route_id"` FromTripID sql.NullString `db:"from_trip_id"` ToTripID sql.NullString `db:"to_trip_id"` TransferType TransferType `db:"transfer_type"` MinTransferTime sql.NullInt32 `db:"min_transfer_time"` }
type NullTransferType ¶
type NullTransferType struct { TransferType TransferType Valid bool // Valid is true if TransferType is not NULL }
func (*NullTransferType) Scan ¶
func (ns *NullTransferType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateTransfer ¶
func (q *Queries) CreateTransfer(ctx context.Context, arg CreateTransferParams) error
func (*Queries) GetTransferByID ¶
type Transfer ¶
type Transfer struct { ID int32 `csv:"id"` FromStopID sql.NullString `csv:"from_stop_id,omitempty"` ToStopID sql.NullString `csv:"to_stop_id,omitempty"` FromRouteID sql.NullString `csv:"from_route_id,omitempty"` ToRouteID sql.NullString `csv:"to_route_id,omitempty"` FromTripID sql.NullString `csv:"from_trip_id,omitempty"` ToTripID sql.NullString `csv:"to_trip_id,omitempty"` TransferType TransferType `csv:"transfer_type"` MinTransferTime sql.NullInt32 `csv:"min_transfer_time,omitempty"` }
type TransferType ¶
type TransferType string
const ( TransferTypeRecommendedTransferPoint TransferType = "RecommendedTransferPoint" TransferTypeTimedTransferPoint TransferType = "TimedTransferPoint" TransferTypeMinimumTransferTime TransferType = "MinimumTransferTime" TransferTypeTransferNotPossible TransferType = "TransferNotPossible" TransferTypeInSeatTransfer TransferType = "InSeatTransfer" TransferTypeInSeatTransferNotAllowed TransferType = "InSeatTransferNotAllowed" )
func (*TransferType) Scan ¶
func (e *TransferType) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.