-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Hi there,
this is a small proposal I would like to make. Please upvote if you think it should be improved, or downvote if you think it should be left in the current state. Comments are also welcome.
With kind regards,
Andreas.
Introduction
At #442 (comment), we had a conversation about the src/crate/client/doctests/cursor.txt file. On the other hand, there is also docs/query.rst. Both have in common that they demonstrate how to query data from CrateDB.
Problem
Apparently, cursor.txt is being tested 1, but query.rst is not. Vice versa, query.rst is part of the documentation 2, but cursor.txt is not.
Proposal
We may think about having both: Add query.rst to the test suite, and add cursor.txt to the rendered documentation. This will both improve code quality (query.rst will be validated) and the documentation (parts of the tests in cursor.txt may be interesting to readers).