/*
 * au_auth_distinctcard_dbio.h - au 모듈 DB 접근 계층 copybook (au_auth_distinctcard_dbio, part of libaudbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 * Shape: count(DISTINCT card_no) + count(DISTINCT merchant_id).
 */
#ifndef AU_AUTH_DISTINCTCARD_DBIO_H
#define AU_AUTH_DISTINCTCARD_DBIO_H

typedef struct { long distinct_cards; long distinct_merchants; } au_distinct_rec_t;

int audb_auth_distinct_counts(const char *bizdate, au_distinct_rec_t *out);

#endif /* AU_AUTH_DISTINCTCARD_DBIO_H */
