-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changes for new storage provider API * Remove SchemaStore trait * Rename SqlStorage to SqlStore * Move storage types into own module * Consistent exporting from models module * Remove outdated comment * Update p2panda_rs * Remove use of deprecated conversion traits on StorageEntry * Remove use of EntryWithOperation trait * Introduce StorageDocument struct * Add document_id column to document_views table * Introduce DocumentRow struct * Complete re-write of DocumentStore (with docs ;-p) * Update Cargo.lock * Update all effected modules * Make the ugly SQL pretty * Use ref for p2panda dependency * Use where for readability * Correct SqlStore doc string * Typo * License header * Docs for all db modules * Re-organize db modules a little * fmt * Update CHANGELOG * Improve CHANGELOG entry
- Loading branch information
Showing
44 changed files
with
1,617 additions
and
1,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
ALTER TABLE document_views ADD COLUMN document_id TEXT NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
pub mod document; | ||
//! Structs representing rows in SQL tables. Needed when coercing results returned from a | ||
//! query using the `sqlx` library. | ||
mod document; | ||
mod entry; | ||
mod log; | ||
mod operation; | ||
mod task; | ||
pub mod utils; | ||
|
||
pub use self::log::LogRow; | ||
pub use document::{DocumentRow, DocumentViewFieldRow}; | ||
pub use entry::EntryRow; | ||
pub use operation::{OperationFieldsJoinedRow, OperationRow}; | ||
pub use task::TaskRow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.