/*
 * au_merchant_active_dbio.h - au 모듈 DB 접근 계층 copybook (au_merchant_active_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: GROUP BY merchant_id HAVING count(*) >= 최소건수.
 */
#ifndef AU_MERCHANT_ACTIVE_DBIO_H
#define AU_MERCHANT_ACTIVE_DBIO_H

typedef struct { char merchant_id[64]; long auths; } au_active_rec_t;

long audb_active_merchant_count(const char *bizdate, long min_auths);

#endif /* AU_MERCHANT_ACTIVE_DBIO_H */
