I would like to create my own database server for educational purposes. My problem is, I cannot really find information about how these systems work. Now, I can create databases and tables and get data from it with basic select statements.
But, when a client connects to the database server, how should I send the result of a query back to the client? What format should be used to get good performance? What other things may need to be taken care of, given the specific scenario?