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

Add SQLite compatibility with new module #190

Merged
merged 30 commits into from
Dec 8, 2023
Merged

Conversation

pedroripper
Copy link
Member

This PR allows one to create, load and modify a study using SQLite.

A new module OpenSQL was created and should be able to function independent from PSRI. Moreover, this new functionality should have the same interface as with the current PSRI data format.

That being said, in the file sql_interface.jl, PSRI functions are overloaded to fit the new module's methods to PSRI's syntax.

src/OpenSQL/delete.jl Show resolved Hide resolved
src/OpenSQL/utils.jl Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 108 lines in your changes are missing coverage. Please review.

Comparison is base (93b1f50) 80.11% compared to head (37be1c2) 79.24%.
Report is 2 commits behind head on master.

Files Patch % Lines
src/sql_interface.jl 47.22% 38 Missing ⚠️
src/OpenSQL/validate.jl 73.13% 18 Missing ⚠️
src/OpenSQL/utils.jl 81.52% 17 Missing ⚠️
src/OpenSQL/read.jl 79.22% 16 Missing ⚠️
src/OpenSQL/update.jl 57.89% 16 Missing ⚠️
src/OpenSQL/create.jl 95.12% 2 Missing ⚠️
src/OpenSQL/delete.jl 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #190      +/-   ##
==========================================
- Coverage   80.11%   79.24%   -0.88%     
==========================================
  Files          21       29       +8     
  Lines        2872     3272     +400     
==========================================
+ Hits         2301     2593     +292     
- Misses        571      679     +108     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/OpenSQL/README.md Outdated Show resolved Hide resolved
src/OpenSQL/README.md Outdated Show resolved Hide resolved
Copy link
Member

@guilhermebodin guilhermebodin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is my laste request to merge this

src/OpenSQL/README.md Show resolved Hide resolved

- In case of a vector attribute, a Table should be created with its name indicating the name of the Collection and the name of the attribute, separated by `_vector_`, as presented below

<p style="text-align: center;"> COLLECTION_NAME_vector_ATTRIBUTE_NAME</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COLLECTION_vector_ATTRIBUTE

src/OpenSQL/README.md Outdated Show resolved Hide resolved
src/OpenSQL/README.md Outdated Show resolved Hide resolved
@guilhermebodin guilhermebodin merged commit 7ae91da into master Dec 8, 2023
8 of 10 checks passed
@pedroripper pedroripper deleted the pr/sql-study branch December 11, 2023 12:44
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

Successfully merging this pull request may close these issues.

2 participants