How to use the slonik.sql function in slonik

To help you get started, we’ve selected a few slonik 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 mmkal / slonik-tools / packages / typegen / src / index.ts View on Github external
const _wrappedSqlFunction = (...args: Parameters) => {
      const result = slonikSql(...args)
      const key = mapKey(result)
      const _identifiers = _map[key] = _map[key] || []
      _identifiers.push(identifier)
      return result
    }
    return Object.assign(_wrappedSqlFunction, slonikSql)

slonik

A Node.js PostgreSQL client with strict types, detailed logging and assertions.

BSD-3-Clause
Latest version published 2 days ago

Package Health Score

83 / 100
Full package analysis