Skip to content

[FEATURE] create parser for queries #22

Open
@git-user-cpp

Description

@git-user-cpp

implement parser for database.

data in format data out format
regular string not (yet) crypted text file
db command db action
" cr 'db1' " creates file db1.txt
" dl 'db1' " removes file db1.txt
" run 'db1' " uses db1.txt as current db
table command table action
" cr tab 'tab1' " creates table
" rd tab 'tab1' " reads table
" up tab 'tab1' " updates table
" dl tab 'tab1' " removes table
row command row action
" cr row 'row1' " creates row
" rd row 'row1' " reads row
" up row 'row1' " updates row
" dl row 'row1' " removes row
column command column action
" cr row 'row1', 'hello' " 1 hello
" rd row 'row1', 1" hello
" up row 'row1', 'hello', 'bye' " 2 bye
" dl row 'row1', 'bye' " empty file

in directory src/queries implement parser for database queries, use CRUD pattern (create, read, update, delete). in general, the goal is to implement first working version of parser.

the commands ain't perfect so they can be implemented differently. for example queries can look like SQL's INSERT, UPDATE, DELETE, CREATE etc.

also, don't forget to use doc comments for building nice documentation later (however, if u want I can do that)

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions