Ensure doc tests compile successfully
This commit is contained in:
parent
2adcab4394
commit
f33031ca6b
1 changed files with 12 additions and 6 deletions
|
@ -33,8 +33,10 @@ impl Datastore {
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// # use surrealdb::Datastore;
|
/// # use surrealdb::Datastore;
|
||||||
/// # fn main() -> Result<()> {
|
/// # use surrealdb::Error;
|
||||||
/// let ds = Datastore::new("memory")?;
|
/// # #[tokio::main]
|
||||||
|
/// # async fn main() -> Result<(), Error> {
|
||||||
|
/// let ds = Datastore::new("memory").await?;
|
||||||
/// # Ok(())
|
/// # Ok(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -43,8 +45,10 @@ impl Datastore {
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// # use surrealdb::Datastore;
|
/// # use surrealdb::Datastore;
|
||||||
/// # fn main() -> Result<()> {
|
/// # use surrealdb::Error;
|
||||||
/// let ds = Datastore::new("file://temp.db")?;
|
/// # #[tokio::main]
|
||||||
|
/// # async fn main() -> Result<(), Error> {
|
||||||
|
/// let ds = Datastore::new("file://temp.db").await?;
|
||||||
/// # Ok(())
|
/// # Ok(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -53,8 +57,10 @@ impl Datastore {
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// # use surrealdb::Datastore;
|
/// # use surrealdb::Datastore;
|
||||||
/// # fn main() -> Result<()> {
|
/// # use surrealdb::Error;
|
||||||
/// let ds = Datastore::new("tikv://127.0.0.1:2379")?;
|
/// # #[tokio::main]
|
||||||
|
/// # async fn main() -> Result<(), Error> {
|
||||||
|
/// let ds = Datastore::new("tikv://127.0.0.1:2379").await?;
|
||||||
/// # Ok(())
|
/// # Ok(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue