Newton's Programmatic Measurements

    @icon-solutions/balthazar-query-builder
    TypeScript icon, indicating that this package has built-in type declarations

    1.6.8 • Public • Published

    Balthazar Query Builder

    Balthazar Query Builder is a NPM package that provides functonality to convert data from Icon Segment Builder into SQL-queries.

    How to use

    Installation

    The package is a private NPM package and is (so far) only available within the Icon Solutions development team.

    npm install @icon-solutions/balthazar-query-builder
    

    Functions

    queryBuilder(queryData)

    A function that takes queryData as input and returns an object containing a SQL-query providing matches on given input, a request status and a message.

    countQueryBuilder(queryData)

    A function that take queryData as input and returns a object containing a SQL-query providing number of matches on given input, a request status and a message.

    Example usage

    import { queryBuilder, countQueryBuilder, QueryData, QueryResult } from '@icon-solutions/balthazar-query-builder';
    
    const buildQueryHandler = (queryData: QueryData) => {
        const query: QueryResult = queryBuilder(queryData);
        console.log("Query: ", query);
        const count: QueryResult = countQueryBuilder(queryData);
        console.log("Count: ", count);
    };

    Install

    npm i @icon-solutions/balthazar-query-builder

    DownloadsWeekly Downloads

    6

    Version

    1.6.8

    License

    ISC

    Unpacked Size

    62.9 kB

    Total Files

    42

    Last publish

    Collaborators

    • jk_icon
    • jonash0605