Skip to content

Releases: kendarorg/the-protocol-master

[1.3.1] Added replacement queries to fake incompatible dbs

06 May 10:26
Compare
Choose a tag to compare

Replace Queries

Specify a file containing "replacement queries" this is specially useful when running ... the runner
as postgres and contacting a different kind of database. Here can be inserted the replacements.

SPACE ARE IMPORTANT INSIDE THE QUERY. THEY MUST MATCH THE REAL ONE.
AND NO ";" SHOULD BE ADDED AT THE END OF QUERIES

This first example replaces "SELECT 1 AS TEST" directly with "SELECT 2 AS TEST".

#find
SELECT 
 1 AS TEST
#replace
SELECT 
 2 AS TEST

This second example replaces "SELECT anynumber AS TEST" with "SELECT anynumber+1 AS TEST"
So if you send a "SELECT 10 AS TEST" the resultset will contain a 12.

Please notice the usage of the $1 in the capture group.

#regexfind
SELECT 
 ([0-9]+) AS TEST
#replace
SELECT 
 $1+2 AS TEST

This third example replaces "SELECT anynumber AS TEST" directly with "SELECT 2 AS TEST".

In this case the capture group is not used and the whole query will be ALWAYS be replaced

#regexfind
SELECT 
 ([0-9]+) AS TEST
#replace
SELECT 
 2 AS TEST

[1.2.1] Fixed missing sqlcode on postgres errors

02 May 09:39
Compare
Choose a tag to compare

Fixed missing SQL Status Code on Postgres errors

[1.1.0] AMQP/RabbitMQ implementation

21 Feb 08:13
Compare
Choose a tag to compare
  • Added support for basic AMQP 0.9.1 operations (e.g. RabbitMQ) like queues, publish and consume
  • Logging with logback
  • Custom exceptions
  • New state machine with fluent protocol description
  • Asynchronous operation (like cancel Postgres queries)

[1.0.0] Record, Log & Replay Postgres, MySQL and MongoDB

25 Jan 09:17
Compare
Choose a tag to compare

Record, Log & Replay

  • Postgres
  • MySQL
  • MongoDB