Class representing the ReaderModel *

Hierarchy

  • ReaderModel

Constructors

Properties

mmdbReader: Reader<any>

Methods

  • Returns the AnonymousIP db data for an IP address

    Throws

    Throws an error when the DB doesn't support Anonymous IP queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the Anonymous IP db with

    Returns AnonymousIP

  • Returns the ASN db data for an IP address

    Throws

    Throws an error when the DB doesn't support ASN queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the ASN db with

    Returns Asn

  • Returns the City db data for an IP address

    Throws

    Throws an error when the DB doesn't support City queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the City db with

    Returns City

  • Returns the Connection-Type db data for an IP address

    Throws

    Throws an error when the DB doesn't support Connection-Type queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the Connection-Type db with

    Returns ConnectionType

  • Returns the Country db data for an IP address

    Throws

    Throws an error when the DB doesn't support City queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the Country db with

    Returns Country

  • Returns the Domain db data for an IP address

    Throws

    Throws an error when the DB doesn't support Domain queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the Domain db with

    Returns Domain

  • Returns the Enterprise db data for an IP address

    Throws

    Throws an error when the DB doesn't support Enterprise queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the Enterprise db with

    Returns City

  • Parameters

    • dbType: string
    • ipAddress: string
    • fnName: string

    Returns any[]

  • Returns the ISP db data for an IP address

    Throws

    Throws an error when the DB doesn't support ISP queries

    Throws

    Throws an error when the IP address isn't found in the database

    Throws

    Throws an error when the IP address isn't valid

    Parameters

    • ipAddress: string

      The IP Address you want to query the ISP db with

    Returns Isp

  • Parameters

    • modelClass: any
    • dbType: string
    • ipAddress: string
    • fnName: string

    Returns any

Generated using TypeDoc