Skip to content

Commit

Permalink
src/external/postgrest_rs: Ignore doctest in sources copied from othe…
Browse files Browse the repository at this point in the history
…r crate

They will fail as they are not meant to be run from this crate
  • Loading branch information
strykejern committed Oct 17, 2024
1 parent 9ee3cf9 commit 3e11bf5
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 54 deletions.
1 change: 0 additions & 1 deletion src/external/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#[cfg(not(doctest))]
pub(crate) mod postgrest_rs;
40 changes: 20 additions & 20 deletions src/external/postgrest_rs/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand Down Expand Up @@ -108,7 +108,7 @@ impl Builder {
///
/// Simple example:
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
Expand All @@ -124,7 +124,7 @@ impl Builder {
///
/// Renaming columns:
///
/// ```
/// ```text
/// # use postgrest::Postgrest;
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
/// # let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -139,7 +139,7 @@ impl Builder {
///
/// Casting columns:
///
/// ```
/// ```text
/// # use postgrest::Postgrest;
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
/// # let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -154,7 +154,7 @@ impl Builder {
///
/// SELECTing JSON fields:
///
/// ```
/// ```text
/// # use postgrest::Postgrest;
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
/// # let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -170,7 +170,7 @@ impl Builder {
/// Embedded filters (assume there is a foreign key constraint between
/// tables `users` and `tweets`):
///
/// ```
/// ```text
/// # use postgrest::Postgrest;
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
/// # let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -194,7 +194,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -215,7 +215,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand Down Expand Up @@ -284,7 +284,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -307,7 +307,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -330,7 +330,7 @@ impl Builder {
/// # Example
///
/// This retrieves the 2nd to 5th entries in the result:
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand Down Expand Up @@ -366,7 +366,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -384,7 +384,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -402,7 +402,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -419,7 +419,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand All @@ -440,7 +440,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// #[derive(serde::Serialize)]
Expand Down Expand Up @@ -477,7 +477,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// #[derive(serde::Serialize)]
Expand Down Expand Up @@ -518,7 +518,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand Down Expand Up @@ -546,7 +546,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// #[derive(serde::Serialize)]
Expand Down Expand Up @@ -579,7 +579,7 @@ impl Builder {
///
/// # Example
///
/// ```
/// ```text
/// use postgrest::Postgrest;
///
/// let client = Postgrest::new("https://your.postgrest.endpoint");
Expand Down
Loading

0 comments on commit 3e11bf5

Please sign in to comment.