File tree 8 files changed +31
-8
lines changed
crates/crates_io_database
8 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ base64 = "=0.22.1"
49
49
bigdecimal = { version = " =0.4.5" , features = [" serde" ] }
50
50
cargo-manifest = " =0.15.2"
51
51
crates_io_cdn_logs = { path = " crates/crates_io_cdn_logs" }
52
+ crates_io_database = { path = " crates/crates_io_database" }
52
53
crates_io_env_vars = { path = " crates/crates_io_env_vars" }
53
54
crates_io_github = { path = " crates/crates_io_github" }
54
55
crates_io_index = { path = " crates/crates_io_index" }
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " crates_io_database"
3
+ version = " 0.0.0"
4
+ license = " MIT OR Apache-2.0"
5
+ edition = " 2021"
6
+
7
+ [lints ]
8
+ workspace = true
9
+
10
+ [dependencies ]
11
+ diesel = " =2.2.4"
12
+ diesel_full_text_search = " =2.2.0"
Original file line number Diff line number Diff line change
1
+ pub mod schema;
Original file line number Diff line number Diff line change 1
- --- src /schema.rs.orig 2024-03-04 10:34:35
2
- +++ src /schema.rs 2024-03-04 10:33:35
1
+ --- crates/crates_io_database /schema.rs.orig 2024-03-04 10:34:35
2
+ +++ crates/crates_io_database /schema.rs 2024-03-04 10:33:35
3
3
@@ -21,9 +21,7 @@
4
4
/// The `pg_catalog.tsvector` SQL type
5
5
///
9
9
- pub struct Tsvector;
10
10
+ pub use diesel_full_text_search::Tsvector;
11
11
}
12
-
12
+
13
13
diesel::table! {
14
14
@@ -74,9 +72,9 @@
15
15
/// (Automatically generated by Diesel.)
35
35
- path -> Ltree,
36
36
}
37
37
}
38
-
38
+
39
39
@@ -476,7 +468,7 @@
40
40
/// Its SQL type is `Array<Nullable<Text>>`.
41
41
///
47
47
/// Its SQL type is `Nullable<Varchar>`.
48
48
@@ -703,6 +695,24 @@
49
49
}
50
-
50
+
51
51
diesel::table! {
52
52
+ /// Representation of the `recent_crate_downloads` view.
53
53
+ ///
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
# For documentation on how to configure this file,
2
2
# see diesel.rs/guides/configuring-diesel-cli
3
3
[print_schema ]
4
- file = " src/schema.rs"
4
+ file = " crates/crates_io_database/ src/schema.rs"
5
5
with_docs = true
6
- patch_file = " src/schema.patch"
6
+ patch_file = " crates/crates_io_database/ src/schema.patch"
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ extern crate serde_json;
19
19
extern crate tracing;
20
20
21
21
pub use crate :: { app:: App , email:: Emails } ;
22
+ pub use crates_io_database:: schema;
22
23
use std:: sync:: Arc ;
23
24
24
25
use crate :: app:: AppState ;
@@ -49,7 +50,6 @@ pub mod models;
49
50
pub mod rate_limiter;
50
51
mod real_ip;
51
52
mod router;
52
- pub mod schema;
53
53
pub mod sentry;
54
54
pub mod sql;
55
55
pub mod sqs;
You can’t perform that action at this time.
0 commit comments