cargo install diesel_cli --no-default-features --features SQLite
UserTableto read the record of the
user_table. The name of the properties should be the same as the user_table. We can use
UserTableto insert a new record or read the existing record from the database.
Traits are a name given to a group of functions that a data structure can implement. I think using traits to isolate dependencies is a very good practice.
flowy-userdependencies on the
flowy-databasecrate directly. It initializes the database connection when the Application launch or when the user switches account. The
GridDatabasetrait and the
WorkspaceDatabasetrait, these two traits are implemented in the
flowy-sdkis a crate that aggregates all the crates and resolves each crate's dependencies.
flowy-databaseis a crate that handles all the grid operations
flowy-folderis a crate that handles all the folder operations. The folder represents the concepts that include the workspace, app, and view.