Skip to content

Feedback 7/1 #1

@giorgostheo

Description

@giorgostheo

Server-Client


Things that should be fixed:

  • Server should not "hang" after a response to a specific connection. Currently after one query, the server drops the connection and waits for a new one.
  • Whenever a connection is dropped (either as described above or by the user ex. ctrl-c), the port needs to be freed.

Things i would like to see:

  • Client should be able to create databases too. Currently, a database in statically created/loaded. This should be user specified - not only vsmdb (if implementing the creation of a database by the client is too hard).
  • Multiple clients should be able to connect and be served by the server.
  • Client commands should be sql-like. Given an sql compiler has been implemented, the compiler should be used to parse the commands on the server side and return results.

SQL compiler


Things that should be fixed:

  • Document the commands that you support (list of commands and syntax).

Things i would like to see:

  • A compiler should be able to be easily expanded and built upon. Currently the source code is very static. This makes the process of adding support for more queries difficult. Theoretically a abstract syntax tree (AST) should be created etc. This concept is quite advanced. The code should at least be able to support some abstractions (functions that process operators, commands and objects). Handling the argument that parses the name of a table should be a function. Handling the initial command (select, insert etc) should also be a function. Dictionaries should probably be used to map states to functions in order to make expanding the compiler easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions