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 db #12

Merged
merged 49 commits into from
Sep 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
62e8a87
chore: bump version and move config to internal
husni-zuhdi Sep 1, 2024
ff74146
chore: ignore sqlite files
husni-zuhdi Sep 1, 2024
36eacfa
feat: initial migrations for sqlite
husni-zuhdi Sep 1, 2024
fd75654
feat: implement hexagonal architecture for husni-portfolio
husni-zuhdi Sep 1, 2024
3c60d89
feat: update data model and add memory as database
husni-zuhdi Sep 1, 2024
ecf039f
feat: update router, handler, github api, and utils
husni-zuhdi Sep 1, 2024
07d00e8
chore: update sqlx task related and update env.example
husni-zuhdi Sep 1, 2024
3545dc7
chore: add dyn-clone dependencies
husni-zuhdi Sep 1, 2024
7c4b179
chore: remove commented code, remove unused functions, and trimming l…
husni-zuhdi Sep 1, 2024
e22bde5
feat: implement dyn-clone lib
husni-zuhdi Sep 1, 2024
76557fd
feat: update naming and implement Arc Mutex
husni-zuhdi Sep 1, 2024
fbbcaf1
chore: update readme to replace actix -> axum
husni-zuhdi Sep 1, 2024
a1e65f4
chore: exploring markdown-rs frontmatter construct related to md yaml…
husni-zuhdi Sep 2, 2024
73ef3d2
fix: typo in arg
husni-zuhdi Sep 2, 2024
e10f9ac
chore: remove postgre envar and add sqlite/data envar
husni-zuhdi Sep 2, 2024
609d59c
feat: add axum macro feature to help debug handler
husni-zuhdi Sep 2, 2024
732374b
feat: update blog hexagonal arch to support async_trait
husni-zuhdi Sep 2, 2024
4c2f6c3
feat: implement FromRow for Blog and add BlogPagination for query param
husni-zuhdi Sep 2, 2024
4444bdc
feat: add sqlite db layer and update memory db to use async fn
husni-zuhdi Sep 2, 2024
75d2f54
feat: remove postgre envar and add sqlite/data envar
husni-zuhdi Sep 2, 2024
4263ba1
chore: improve build state fn
husni-zuhdi Sep 2, 2024
b50d111
chore: change &mut self to &self for queries and add Sync trait
husni-zuhdi Sep 2, 2024
37e73d5
feat: change std mutex to tokio mutex and update FromRow BlogSource i…
husni-zuhdi Sep 2, 2024
3cade23
chore: change &mut self to &self for db repo and fix several sqlite q…
husni-zuhdi Sep 2, 2024
b9dd825
feat: update config::from_envar implementation
husni-zuhdi Sep 2, 2024
bc4e16d
feat: add debug_handler, improve pagination, and apply tokio mutex
husni-zuhdi Sep 2, 2024
3c34a7b
feat: add inital sqlite migration
husni-zuhdi Sep 2, 2024
ca27c15
chore: add docs
husni-zuhdi Sep 3, 2024
5625ecf
chore: change default endpoint and environment naming
husni-zuhdi Sep 3, 2024
0650bdc
feat: improve pagionation on memory repo
husni-zuhdi Sep 3, 2024
f0e5f00
fix: update command port naming
husni-zuhdi Sep 3, 2024
95f13f9
chore: tidy up Version model
husni-zuhdi Sep 3, 2024
7f00bc2
chore: separate BlogsTemplate from BlogTemplate data
husni-zuhdi Sep 3, 2024
cf37c3b
chore: update Version and BlogsTemplate implementation
husni-zuhdi Sep 3, 2024
f09bc2c
chore: refactor handler functions
husni-zuhdi Sep 3, 2024
f441ed6
feat: add api port, repo, and usecase
husni-zuhdi Sep 5, 2024
67e60f8
feat: add implementation of api usecase for github and filesystem
husni-zuhdi Sep 5, 2024
4285d6e
feat: add chekc_id method for blog
husni-zuhdi Sep 5, 2024
7b47d0a
feat: add BlogMetadata, BlogStored, and implement FromRow for BlogId
husni-zuhdi Sep 5, 2024
ec8f851
feat: add type related to GithubTree and enable access data on severa…
husni-zuhdi Sep 5, 2024
fe75c77
feat: add check_id method and remove api-related implementation
husni-zuhdi Sep 5, 2024
28ea638
feat: add check_id method
husni-zuhdi Sep 5, 2024
8f1d70c
feat: update state_factory to implement new api usecases
husni-zuhdi Sep 5, 2024
764f728
chore: change error.rs to status.rs and their implementation
Sep 6, 2024
0490227
chore: remove unused comment
Sep 6, 2024
42aa66e
chore: move processing markdwon function to a method under filesystem
Sep 6, 2024
6170fc0
chore: move method documentation
Sep 6, 2024
c80d715
chore: add TODO to change BlogId to int
Sep 6, 2024
d2091d8
chore: remove unused md_to_html
Sep 6, 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
Prev Previous commit
Next Next commit
chore: add dyn-clone dependencies
husni-zuhdi committed Sep 1, 2024

Verified

This commit was signed with the committer’s verified signature.
SimonBrandner Šimon Brandner
commit 3545dc7da440d82d0429332ba5cfff97dafe3eca
1 change: 1 addition & 0 deletions internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ http-body-util = "0.1.2"
regex = "1.10.6"
sqlx = { version = "=0.8.1", features = ["sqlite", "runtime-tokio"] }
async-trait = "0.1.81"
dyn-clone = "1.0.17"
# rusqlite = "=0.32.1"

[build-dependencies]