Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement simple database loader #28

Open
Satrige opened this issue Jan 14, 2025 · 0 comments
Open

Implement simple database loader #28

Satrige opened this issue Jan 14, 2025 · 0 comments

Comments

@Satrige
Copy link
Owner

Satrige commented Jan 14, 2025

Since we wanna our results persist on disk, we need to implement a loader for it.

Let's keep it simple for the beginning.
The database on disk should have the next structure:

${database_folder}/
${database_folder}/db_struct.yaml
${database_folder}/${table1}
${database_folder}/${table2}

Where ${database_folder}/db_struct.yaml has the next struct:

db_name: db_name
tables:
  - table_name: users
    table_structure:
      - row_name: id
        row_type: integer
      - row_name: name
        row_type: string
      - row_name: email
        row_type: string

And the ${database_folder}/${table1} is the binary representation of the table contents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant