Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FEATURE] create parser for queries #22

Open
Assignees
Labels
documentationImprovements or additions to documentation enhancementNew feature or request good first issueGood for newcomers help wantedExtra attention is needed
@git-user-cpp

Description

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

Labels

documentationImprovements or additions to documentation enhancementNew feature or request good first issueGood for newcomers help wantedExtra attention is needed

Projects

Status

Todo

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /