import { Writable } from "node:stream";
import type { Pool } from "pg";
interface Row {
email: string;
name: string;
const { Pool } = require('pg');
const Cursor = require('pg-cursor');
const pool = new Pool();
async function* streamUsers({ since, batchSize = 500 }) {
'use strict';
const { Transform } = require('stream');
class LineSplitter extends Transform {
constructor(options = {}) {