How to use the msnodesqlv8.TvpFromTable function in msnodesqlv8

To help you get started, we’ve selected a few msnodesqlv8 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tediousjs / node-mssql / lib / msnodesqlv8 / request.js View on Github external
case TYPES.DateTimeOffset:
    case TYPES.Date:
      if (!(value instanceof Date)) {
        value = new Date(value)
      }
      break

    case TYPES.Binary:
    case TYPES.VarBinary:
    case TYPES.Image:
      if (!(value instanceof Buffer)) {
        value = Buffer.from(value.toString())
      }
      break
    case TYPES.TVP:
      value = msnodesql.TvpFromTable(value)
      break
  }

  return value
}

msnodesqlv8

Microsoft Driver for Node.js SQL Server compatible with all versions of Node.

Apache-2.0
Latest version published 7 months ago

Package Health Score

73 / 100
Full package analysis