How to use the @shabados/database.Banis.query function in @shabados/database

To help you get started, we’ve selected a few @shabados/database 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 ShabadOS / desktop / app / lib / db.js View on Github external
export const getBaniLines = baniId => Banis
  .query()
  .joinEager( 'lines.shabad' )
  .orderBy( [ 'line_group', 'l.order_id' ] )
  .where( 'banis.id', baniId )
  .withTranslations()
  .withTransliterations()
  .eagerOptions( { minimize: false, aliases: { lines: 'l' } } )
  .then( ( [ bani ] ) => bani )
github ShabadOS / desktop / app / lib / db.js View on Github external
export const getBanis = () => Banis.query()

@shabados/database

The open gurbani database containing an evolving set of corrections. Used in Shabad OS software.

GPL-3.0
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis