Files
oak-gpui/crates
Max Brunsfeld ef9686c988 Reorganize the structure of the collab crate's db module (#2866)
This PR just moves some code around, with the goal of making it easier
to find things in the `collab::db` module. That has become a large
module. Previously, most of the logic lived in one giant `impl Database`
item in `db.rs`.

I broke up this `impl` into several different `impl` blocks, grouped by
topic, each in a different file in a folder called `queries`.

I also pulled out the macro-generated id types into their own file,
moved the `TestDb` struct into its own file, and moved the `sea_orm`
entity declarations into a folder called `tables`.

New folder structure:

```
db
├── db_tests.rs
├── ids.rs
├── queries
│   ├── access_tokens.rs
│   ├── channels.rs
│   ├── contacts.rs
│   ├── projects.rs
│   ├── rooms.rs
│   ├── servers.rs
│   ├── signups.rs
│   └── users.rs
├── queries.rs
├── tables
│   ├── access_token.rs
│   ├── channel.rs
│   ├── channel_member.rs
│   ├── channel_path.rs
│   ├── contact.rs
│   ├── follower.rs
│   ├── language_server.rs
│   ├── project.rs
│   ├── project_collaborator.rs
│   ├── room.rs
│   ├── room_participant.rs
│   ├── server.rs
│   ├── signup.rs
│   ├── user.rs
│   ├── worktree.rs
│   ├── worktree_diagnostic_summary.rs
│   ├── worktree_entry.rs
│   ├── worktree_repository.rs
│   ├── worktree_repository_statuses.rs
│   └── worktree_settings_file.rs
├── tables.rs
└── test_db.rs
```

Release Notes:

- N/A
2023-08-18 17:29:15 -07:00
..
2023-08-15 03:06:43 -07:00
2023-08-15 03:06:43 -07:00
2023-08-15 03:06:43 -07:00
2023-08-18 15:34:35 -07:00
2023-08-15 03:06:43 -07:00
2023-08-15 03:06:43 -07:00
2023-08-15 03:06:43 -07:00
2023-07-14 16:09:02 -07:00
2023-08-15 15:32:14 -04:00
2023-08-15 03:06:43 -07:00
2023-07-23 21:36:29 -07:00
2023-02-27 12:06:10 -08:00
2023-08-18 15:17:24 -07:00
2023-08-15 03:06:43 -07:00
2023-08-15 03:06:43 -07:00
2023-06-02 22:02:19 -04:00
2023-06-02 22:02:19 -04:00
2023-08-16 19:47:54 -07:00
2023-08-16 23:38:11 +03:00
2023-08-03 18:57:43 -04:00
2023-06-29 22:25:49 +03:00
2023-08-18 15:26:36 -07:00
2023-08-17 17:28:09 -07:00
2023-06-02 22:02:19 -04:00
2023-06-30 22:03:21 +03:00
2023-08-17 17:28:09 -07:00
2023-08-18 15:50:34 -06:00
2023-08-17 17:28:09 -07:00
2023-06-22 18:06:52 +02:00
2023-08-16 23:38:11 +03:00