query/links

Link Query Functions

These functions query the rt_links table in the Right Track Database.

Source:

Methods

(inner) getLinkCategories(db, callback)

Source:

Get a list of all link category titles

Parameters:
Name Type Description
db RightTrackDB

The Right Track DB to query

callback function

Callback function

Properties
Name Type Attributes Description
error Error

Database Query Error

categories Array.<string> <optional>

The selected Link categories

Source:

Get all of the Agency link information from the database

Parameters:
Name Type Description
db RightTrackDB

The Right Track Database to query

callback function

Callback function

Properties
Name Type Attributes Description
error Error

Database Query Error

links Array.<Link> <optional>

The selected Links

(inner) getLinksByCategory(db, category, callback)

Source:

Get all of the Agency link information from the database with the specified link category title.

Parameters:
Name Type Description
db RightTrackDB

The Right Track Database to query

category string

Link category title

callback function

Callback function

Properties
Name Type Attributes Description
error Error

Database Query Error

links Array.<Link> <optional>

The selected Links