import { getDatabaseClient } from '..' ; import { Knex } from 'knex' ; import * as dateHelpers from './date' ; import * as geometryHelpers from './geometry' ; export function getHelpers ( database ) { const client = getDatabaseClient ( database ) ; return { date : new dateHelpers [ client ] ( database ) , st : new geometryHelpers [ client ] ( database ) , } ; } export type Helpers = ReturnType < typeof getHelpers > ;