prorm API Reference
    Preparing search index...

    Function setDefaultQueryBuilder

    • Set the default query builder

      Parameters

      • builder: {
            select: (table: string, where?: any) => any;
            insert: (table: string, values: Record<string, any>) => any;
            update: (table: string, values: Record<string, any>, where: any) => any;
            delete: (table: string, where: any) => any;
            where: (conditions: any) => any;
            order: (order: any) => any;
            limitOffset: (limit?: string | number, offset?: string | number) => any;
        }
        • select: (table: string, where?: any) => any

          Build a simple SELECT query

        • insert: (table: string, values: Record<string, any>) => any

          Build a simple INSERT query

        • update: (table: string, values: Record<string, any>, where: any) => any

          Build a simple UPDATE query

        • delete: (table: string, where: any) => any

          Build a simple DELETE query

        • where: (conditions: any) => any

          Build a WHERE clause

        • order: (order: any) => any

          Build an ORDER BY clause

        • limitOffset: (limit?: string | number, offset?: string | number) => any

          Build a LIMIT/OFFSET clause

      Returns void