import { Type } from '@nestjs/common' ; import { Observable } from 'rxjs' ; export interface DatabaseFeatureOptions { tableName : string ; } export interface QueryParams { /**
     * The query string using ? or $1 to mark parameters for a parameterized query
     */ query : string ; /**
     * Filtering condition on what to query for
     */ where ? : string ; /**
     * The values to inject into the query at runtime. Helps guard against SQL Injection
     */ variables : any [ ] ; } export interface InsertParams { query : string ; where ? : string ; variables : any [ ] ; } export interface UpdateParams { query : string ; where ? : string ; variables : any [ ] ; } export interface UpdateManyParams { query : string ; tableAlias : string ; where ? : string ; tempTable : string ; variables : any [ ] ; } export interface DatabaseInterface < T > { tableName : string ; param params query ( params , type ) : Observable < T [ ] > ; param params insert ( params , type ) : Observable < T [ ] > ; param params update ( params , type ) : Observable < T [ ] > ; param params delete ( params ) : Observable < T [ ] > ; }