AlexanderMihail / seastar_db

A key-value database engine with REST interface
http://seastar.io
Apache License 2.0
0 stars 0 forks source link

Increase cardinality of class Table to allow for many tables. #4

Closed AlexanderMihail closed 4 months ago

AlexanderMihail commented 4 months ago

Seastar_DB Needs to get closer to competing with MongoDB.

The class "Table" is instantiated once into local variable "table". That should change to a map of tables. The REST api also has to change:

  1. Table creation/deletion to work on the map of tables. REST-APIs: /create?table=name, /delete?table=name.
  2. File persistence for the table-of-tables.
  3. Dynamically created routes for the existing tables: /table_/

This is important, as it makes the difference between a toy and a useful tool.

AlexanderMihail commented 4 months ago

Done. There is now a static map of Table::tables. Please see #3 for details on working with multiple tables.