Skip to content

Loopback 4, querying with SQLQuery with postgres connector #2165

@vishalvisd

Description

@vishalvisd

Description/Steps to reproduce

This is how I have defined my repository following very generic example given at loopback documentation:-


import {DefaultCrudRepository, juggler} from '@loopback/repository';
import {AModel} from '../models';
import {TimeseriesDataSource} from '../datasources';
import {inject} from '@loopback/core';

export class AModelRepository extends DefaultCrudRepository<
  AModel,
  typeof AModel.prototype.id
> {
  constructor(
    @inject('datasources.timeseries') dataSource: TimeseriesDataSource,
  ) {
    super(AModel, dataSource);
  }
}

I was hoping that if do AModelRepository.execute(sql, null, cb) it would work. But its giving error - Error: Not implemented

Any help is highly appreciated.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions