Skip to content

@sqlrooms/room-config / UrlDataSource

Type Alias: UrlDataSource

UrlDataSource: object

Interface

Configuration for URL-based data sources UrlDataSource

Type declaration

NameTypeDescription
tableNamestringUnique table name used to store the data loaded from the data source. This name will be used to reference the data in SQL queries.
type"url"-
urlstringURL from which to fetch the data
loadOptions?objectOutputType<object & object & object, ZodUnknown, "strip"> | objectOutputType<object & object, ZodUnknown, "strip">Optional configuration for file loading
httpMethod?stringOptional HTTP method to use for the request
headers?Record<string, string>Optional headers to include in the request