/**
 * Zen Database Module
 * Complete database utilities for PostgreSQL
 */

// Core database functions
export {
  DatabaseError,
  query,
  queryOne,
  queryAll,
  transaction,
  getPool,
  closePool,
  testConnection,
  tableExists
} from './db.server.js';

// CRUD helper functions
export {
  filterAllowedColumns,
  safeIdentifier,
  safeOrderBy,
  create,
  findById,
  find,
  findOne,
  updateById,
  update,
  deleteById,
  deleteWhere,
  count,
  exists
} from './crud.js';
