/*
 * py_account_minmax_dbio.h - py 모듈 DB 접근 계층 copybook (py_account_minmax_dbio, part of libpydbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 */
#ifndef PY_ACCOUNT_MINMAX_DBIO_H
#define PY_ACCOUNT_MINMAX_DBIO_H

typedef struct { long threshold; long top_balance; long low_cnt; } py_account_minmax_rec_t;

long pydb_account_top_balance(void);
long pydb_account_low_count(long threshold);

#endif /* PY_ACCOUNT_MINMAX_DBIO_H */
