Global

Members

(constant) DEFAULT_HTTP_OPTIONS :Agent.Options

Type:
  • Agent.Options
Source:

Methods

log(level, message)

Simple logger to write log messages to the console.
Supported logging levels are `error`, `warn`, `info` and `debug`.
Throws an error if logging level is invalid.
Parameters:
Name Type Description
level 'error' | 'warn' | 'info' | 'debug' The log level of the message.
message string The log message.
Source:

validateColumnName(name, maxNameLength)

Validates a column name.
Throws an error if column name is invalid.
Parameters:
Name Type Description
name string The column name to validate.
maxNameLength number The maximum length of column names.
Source:

validateTableName(name, maxNameLength)

Validates a table name.
Throws an error if table name is invalid.
Parameters:
Name Type Description
name string The table name to validate.
maxNameLength number The maximum length of table names.
Source: