From 81cdf88b50e279da38cc4dba0d8b2b1237e784fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alja=C5=BE=20Mur=20Er=C5=BEen?= Date: Mon, 26 Feb 2024 10:10:15 +0100 Subject: [PATCH] docs: lib --- connector_arrow/src/lib.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/connector_arrow/src/lib.rs b/connector_arrow/src/lib.rs index 9d3d5ec..d3151bb 100644 --- a/connector_arrow/src/lib.rs +++ b/connector_arrow/src/lib.rs @@ -13,26 +13,24 @@ //! //! Example for SQLite: //! ``` -//! # use connector_arrow::api::{Connector, Statement, ResultReader}; -//! # use connector_arrow::arrow::record_batch::RecordBatch; -//! # use connector_arrow::arrow::datatypes::SchemaRef; -//! # use connector_arrow::sqlite::SQLiteConnection; +//! use connector_arrow::api::{Connector, Statement, ResultReader}; +//! use connector_arrow::arrow; //! //! # fn main() -> Result<(), connector_arrow::ConnectorError> { //! // a regular rusqlite connection //! let conn = rusqlite::Connection::open_in_memory()?; //! //! // wrap into connector_arrow connection -//! let mut conn = SQLiteConnection::new(conn); +//! let mut conn = connector_arrow::sqlite::SQLiteConnection::new(conn); //! //! let mut stmt = conn.query("SELECT 1 as a")?; //! //! let mut reader = stmt.start([])?; //! -//! let schema: SchemaRef = reader.get_schema()?; +//! let schema: arrow::datatypes::SchemaRef = reader.get_schema()?; //! //! // reader implements Iterator> -//! let batches: Vec = reader.collect::>()?; +//! let batches: Vec = reader.collect::>()?; //! # Ok(()) //! # } //! ```