import { Injectable } from '@nestjs/common';
import { DataSource } from 'typeorm';
import { maritalstatus } from './entities/user-maritalstatus.entity';

@Injectable()
export class UserstatusService {
  constructor(private readonly connection: DataSource) { }

  async findAll(): Promise<maritalstatus[]> {
    return this.connection.query('SELECT * FROM OP_HUB_marital_status');
  }

}