Yorgos S.
10/15/2025, 3:39 PM// Create a client
val client = PgMqClient(pool, "my_queue")
// Send messages
client.send(MyMessage(data = "hello"))
client.sendBatch(listOf(msg1, msg2, msg3))
// Consume messages
val consumer = PgMqConsumer(pool, "my_queue")
consumer.consume { message ->
// Process message
}
// Get queue metrics
val metrics = client.metrics()
The module includes:
• Full CRUD operations (send, pop, archive, delete)
• Batch operations
• Real-time consumption with listen/notify
• Queue metrics and monitoring
• Other Notable Changes
• Enhanced SQL Validation: Improved KSP-based SQL schema validation with a configurable migration path
• Migration Flexibility: New Migrator.migrate() overload that accepts ListMigrationFile
• Context Parameters: Added comprehensive documentation for repository context parameters
Check it out on GitHub: https://github.com/smyrgeorge/sqlx4k
Feedback and contributions are always welcome!loke
10/19/2025, 10:32 AMYorgos S.
10/19/2025, 5:20 PMsqlx4k-jdbc implementation.
Check how is done in the postgres module: https://github.com/smyrgeorge/sqlx4k/blob/main/sqlx4k-postgres/src/jvmMain/kotlin/io/github/smyrgeorge/sqlx4k/postgres/PostgreSQL.kt