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

feat(database)!: implement sqlite support #109

Draft
wants to merge 59 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
720ecee
feat(database)!: implement sqlite support
simonsan Mar 24, 2024
092e657
add initial migration
simonsan Mar 24, 2024
a0daab8
add newline
simonsan Mar 24, 2024
197ac5e
switch to rusqlite and dbmate for migrations
simonsan Mar 25, 2024
5e2c716
implement activity traits I
simonsan Mar 25, 2024
c590e1c
transaction
simonsan Mar 25, 2024
6438712
add migrations
simonsan Mar 26, 2024
91f5046
add ER
simonsan Mar 26, 2024
cb3ee7c
factor out pace_storage
simonsan Mar 27, 2024
817623e
factor out pace_storage crate
simonsan Mar 26, 2024
8114ffb
remove diesel.toml
simonsan Mar 26, 2024
b0e8fb4
add pace_storage
simonsan Mar 26, 2024
f9ee382
style: fmt
simonsan Mar 26, 2024
3a7d995
refactoring storage
simonsan Mar 26, 2024
685d5cb
chore: update cargo lock
simonsan Mar 27, 2024
d3d94ce
feat(migrations): implement migrations for pace_storage
simonsan Mar 27, 2024
bc38a5a
fix get_storage_from_config
simonsan Mar 27, 2024
2c343ba
remove unused imports
simonsan Mar 27, 2024
fcf6ce2
create based values for activity status and kind
simonsan Mar 27, 2024
fb047ff
fix some more issues
simonsan Mar 27, 2024
5beb92f
factor out pace_error for easier error handling across the ecosystem
simonsan Mar 27, 2024
394fd23
fix imports for tests
simonsan Mar 27, 2024
d465cfb
adopt new config format for database changes
simonsan Mar 27, 2024
cd770f0
add readmes
simonsan Mar 27, 2024
df7970a
fix option for cli
simonsan Mar 27, 2024
d5d4640
add missing error crate
simonsan Mar 27, 2024
9c91fe2
fix clippy
simonsan Mar 27, 2024
475de7e
add enviroment variable to clap parsing
simonsan Mar 27, 2024
9ac4fb3
more preparations for database storage
simonsan Mar 28, 2024
abd862e
more preparations for database storage II
simonsan Mar 28, 2024
e3ed98a
more preparations for database storage III
simonsan Mar 28, 2024
8b0fab4
implementation of migrations and more error handling regarding that
simonsan Mar 28, 2024
fe726e7
fix migration for activities table
simonsan Mar 28, 2024
75594e2
update trait
simonsan Mar 28, 2024
fbe6592
fix adding values from migration
simonsan Mar 28, 2024
83a7d4e
cleanup comments and unused import
simonsan Mar 28, 2024
b62bf93
renamed mediator to converter to better reflect usage
simonsan Mar 28, 2024
8760f14
move description to own table for easier deduplication and storage space
simonsan Mar 29, 2024
09d260d
factor out pace_service
simonsan Mar 29, 2024
3383d2b
refactor commands
simonsan Mar 29, 2024
52c8c54
add docs to service
simonsan Mar 29, 2024
73b3f75
add ecosystem png
simonsan Mar 29, 2024
dc44ed4
add ecosystem excalidraw
simonsan Mar 29, 2024
babe366
refactor to sea-orm
simonsan Mar 29, 2024
826fc83
update ER
simonsan Mar 29, 2024
d2340a0
rename entity idens
simonsan Mar 29, 2024
02e70cf
ignore marvin attack in audit toml
simonsan Mar 29, 2024
6b1f01c
updating snapshots
simonsan Mar 29, 2024
0a76ba7
updating snapshots
simonsan Mar 29, 2024
063b226
fix toml parse test
simonsan Mar 29, 2024
df635c7
fix tests
simonsan Mar 30, 2024
e73d00f
fix lifetime issue in async trait with ugly workaround (for now)
simonsan Mar 30, 2024
c33a60f
fix clippy
simonsan Mar 30, 2024
07619e3
remove outdated ignored dirs from codecov
simonsan Mar 30, 2024
a6a07dd
remove outdated ignored dirs from codecov
simonsan Mar 30, 2024
909348f
update ecosystem overview
simonsan Mar 30, 2024
ad25fc7
Denormalize database schema for easier usage of enums
simonsan Apr 2, 2024
e78195c
add repositories
simonsan Apr 2, 2024
1b9c3f5
start read_activity impl
simonsan Apr 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[advisories]
ignore = [
"RUSTSEC-2024-0320", # ignore yaml-rust being unmaintained
"RUSTSEC-2023-0071", # marvin attack, we need to wait for a fix
] # advisory IDs to ignore e.g. ["RUSTSEC-2019-0001", ...]
informational_warnings = [
"unmaintained",
Expand Down
3 changes: 0 additions & 3 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ coverage:

ignore:
- "tests" # Test files aren't important for coverage
- "crates/testing" # Testing crate contains Test helpers which aren't important for coverage
- "crates/cli" # CLI crate contains prompts to the user, which we currently deem not important for coverage
- "src/" # Contains only a slim wrapper around pace_core based on abscissa, which we currently deem not important for coverage

# Make comments less noisy
comment:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ logs/*
.cargo/config.toml

# Database
data/pace.sqlite3
db/activities.pace.sqlite3*
Loading
Loading