Skip to content

Commit e1700a5

Browse files
authored
Fix or remove links to SQLite (#578)
Fixes #309
2 parents 9a95047 + a47812a commit e1700a5

File tree

5 files changed

+9
-19
lines changed

5 files changed

+9
-19
lines changed

crates/duckdb/src/appender_params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use sealed::Sealed;
1010
/// Trait used for [sets of parameter][params] passed into SQL
1111
/// statements/queries.
1212
///
13-
/// [params]: https://www.sqlite.org/c3ref/bind_blob.html
13+
/// [params]: https://duckdb.org/docs/stable/clients/c/prepared.html
1414
///
1515
/// Note: Currently, this trait can only be implemented inside this crate.
1616
/// Additionally, it's methods (which are `doc(hidden)`) should currently not be

crates/duckdb/src/params.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ use sealed::Sealed;
1010
/// Trait used for [sets of parameter][params] passed into SQL
1111
/// statements/queries.
1212
///
13-
/// [params]: https://www.sqlite.org/c3ref/bind_blob.html
13+
/// [params]: https://duckdb.org/docs/stable/clients/c/prepared.html
1414
///
1515
/// Note: Currently, this trait can only be implemented inside this crate.
16-
/// Additionally, it's methods (which are `doc(hidden)`) should currently not be
16+
/// Additionally, its methods (which are `doc(hidden)`) should currently not be
1717
/// considered part of the stable API, although it's possible they will
1818
/// stabilize in the future.
1919
///
20-
/// # Passing parameters to SQLite
20+
/// # Passing parameters to DuckDB
2121
///
22-
/// Many functions in this library let you pass parameters to SQLite. Doing this
22+
/// Many functions in this library let you pass parameters to DuckDB. Doing this
2323
/// lets you avoid any risk of SQL injection, and is simpler than escaping
2424
/// things manually. Aside from deprecated functions and a few helpers, this is
2525
/// indicated by the function taking a generic argument that implements `Params`

crates/duckdb/src/pragma.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ impl Connection {
146146
///
147147
/// Some pragmas will return multiple rows/values which cannot be retrieved
148148
/// with this method.
149-
///
150-
/// Prefer [PRAGMA function](https://sqlite.org/pragma.html#pragfunc) introduced in DuckDB 3.20:
151-
/// `SELECT user_version FROM pragma_user_version;`
152149
pub fn pragma_query_value<T, F>(&self, schema_name: Option<DatabaseName<'_>>, pragma_name: &str, f: F) -> Result<T>
153150
where
154151
F: FnOnce(&Row<'_>) -> Result<T>,
@@ -159,9 +156,6 @@ impl Connection {
159156
}
160157

161158
/// Query the current rows/values of `pragma_name`.
162-
///
163-
/// Prefer [PRAGMA function](https://sqlite.org/pragma.html#pragfunc) introduced in DuckDB 3.20:
164-
/// `SELECT * FROM pragma_collation_list;`
165159
pub fn pragma_query<F>(&self, schema_name: Option<DatabaseName<'_>>, pragma_name: &str, mut f: F) -> Result<()>
166160
where
167161
F: FnMut(&Row<'_>) -> Result<()>,
@@ -176,15 +170,11 @@ impl Connection {
176170
Ok(())
177171
}
178172

179-
/// Query the current value(s) of `pragma_name` associated to
180-
/// `pragma_value`.
173+
/// Query the current value(s) of `pragma_name` associated to `pragma_value`.
181174
///
182175
/// This method can be used with query-only pragmas which need an argument
183176
/// (e.g. `table_info('one_tbl')`) or pragmas which returns value(s)
184177
/// (e.g. `integrity_check`).
185-
///
186-
/// Prefer [PRAGMA function](https://sqlite.org/pragma.html#pragfunc) introduced in DuckDB 3.20:
187-
/// `SELECT * FROM pragma_table_info(?);`
188178
pub fn pragma<F>(
189179
&self,
190180
schema_name: Option<DatabaseName<'_>>,

crates/duckdb/src/types/chrono.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Convert most of the [Time Strings](http://sqlite.org/lang_datefunc.html) to chrono types.
1+
//! Convert most of the [Time Strings](https://duckdb.org/docs/stable/sql/functions/date) to chrono types.
22
33
use chrono::{DateTime, Duration, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc};
44
use num_integer::Integer;

crates/duckdb/src/types/value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use super::{Null, OrderedMap, TimeUnit, Type};
22
use rust_decimal::prelude::*;
33

4-
/// Owning [dynamic type value](http://sqlite.org/datatype3.html). Value's type is typically
5-
/// dictated by DuckDB (not by the caller).
4+
/// Owning [dynamic type value](https://duckdb.org/docs/stable/sql/data_types/overview.html).
5+
/// Value's type is typically dictated by DuckDB (not by the caller).
66
///
77
/// See [`ValueRef`](crate::types::ValueRef) for a non-owning dynamic type
88
/// value.

0 commit comments

Comments
 (0)