You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/storage_clients.mdx
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ Crawlee provides three main storage client implementations:
28
28
29
29
- <ApiLinkto="class/FileSystemStorageClient">`FileSystemStorageClient`</ApiLink> - Provides persistent file system storage with in-memory caching.
30
30
- <ApiLinkto="class/MemoryStorageClient">`MemoryStorageClient`</ApiLink> - Stores data in memory with no persistence.
31
-
- <ApiLinkto="class/SqlStorageClient">`SqlStorageClient`</ApiLink> – Provides persistent storage using a SQL database ([SQLite](https://sqlite.org/) or [PostgreSQL](https://www.postgresql.org/)). Requires installing the extra dependency: 'crawlee[sql_sqlite]' for SQLite or 'crawlee[sql_postgres]' for PostgreSQL.
32
-
- <ApiLinkto="class/RedisStorageClient">`RedisStorageClient`</ApiLink> – Provides persistent storage using a [Redis](https://redis.io/) database v8.0+. Requires installing the extra dependency `crawlee[redis]`.
31
+
- <ApiLinkto="class/SqlStorageClient">`SqlStorageClient`</ApiLink> - Provides persistent storage using a SQL database ([SQLite](https://sqlite.org/) or [PostgreSQL](https://www.postgresql.org/)). Requires installing the extra dependency: `crawlee[sql_sqlite]` for SQLite or `crawlee[sql_postgres]` for PostgreSQL.
32
+
- <ApiLinkto="class/RedisStorageClient">`RedisStorageClient`</ApiLink> - Provides persistent storage using a [Redis](https://redis.io/) database v8.0+. Requires installing the extra dependency `crawlee[redis]`.
33
33
-[`ApifyStorageClient`](https://docs.apify.com/sdk/python/reference/class/ApifyStorageClient) - Manages storage on the [Apify platform](https://apify.com), implemented in the [Apify SDK](https://github.com/apify/apify-sdk-python).
34
34
35
35
```mermaid
@@ -310,8 +310,8 @@ Configuration options for the <ApiLink to="class/SqlStorageClient">`SqlStorageCl
310
310
311
311
Configuration options for the <ApiLinkto="class/SqlStorageClient">`SqlStorageClient`</ApiLink> can be set via constructor arguments:
312
312
313
-
-**`connection_string`** (default: SQLite in <ApiLinkto="class/Configuration">`Configuration`</ApiLink> storage dir) – SQLAlchemy connection string, e.g. `sqlite+aiosqlite:///my.db` or `postgresql+asyncpg://user:pass@host/db`.
-**`connection_string`** (default: SQLite in <ApiLinkto="class/Configuration">`Configuration`</ApiLink> storage dir) - SQLAlchemy connection string, e.g. `sqlite+aiosqlite:///my.db` or `postgresql+asyncpg://user:pass@host/db`.
For advanced scenarios, you can configure <ApiLinkto="class/SqlStorageClient">`SqlStorageClient`</ApiLink> with a custom SQLAlchemy engine and additional options via the <ApiLinkto="class/Configuration">`Configuration`</ApiLink> class. This is useful, for example, when connecting to an external PostgreSQL database or customizing connection pooling.
317
317
@@ -369,12 +369,12 @@ class RedisDatasetClient {
369
369
%% Dataset Keys
370
370
%% ========================
371
371
372
-
class Dataset_Keys {
372
+
class DatasetKeys {
373
373
datasets:[name]:items - JSON Array
374
374
datasets:[name]:metadata - JSON Object
375
375
}
376
376
377
-
class Datasets_Indexes {
377
+
class DatasetsIndexes {
378
378
datasets:id_to_name - Hash
379
379
datasets:name_to_id - Hash
380
380
}
@@ -383,8 +383,8 @@ class Datasets_Indexes {
383
383
%% Client to Keys arrows
384
384
%% ========================
385
385
386
-
RedisDatasetClient --> Dataset_Keys
387
-
RedisDatasetClient --> Datasets_Indexes
386
+
RedisDatasetClient --> DatasetKeys
387
+
RedisDatasetClient --> DatasetsIndexes
388
388
```
389
389
390
390
```mermaid
@@ -408,13 +408,13 @@ class RedisKeyValueStoreClient {
408
408
%% Key-Value Store Keys
409
409
%% ========================
410
410
411
-
class Key_Value_Store_Keys {
411
+
class KeyValueStoreKeys {
412
412
key_value_stores:[name]:items - Hash
413
413
key_value_stores:[name]:metadata_items - Hash
414
414
key_value_stores:[name]:metadata - JSON Object
415
415
}
416
416
417
-
class Key_Value_Stores_Indexes {
417
+
class KeyValueStoresIndexes {
418
418
key_value_stores:id_to_name - Hash
419
419
key_value_stores:name_to_id - Hash
420
420
}
@@ -423,8 +423,8 @@ class Key_Value_Stores_Indexes {
Configuration options for the <ApiLinkto="class/RedisStorageClient">`RedisStorageClient`</ApiLink> can be set through environment variables or the <ApiLinkto="class/Configuration">`Configuration`</ApiLink> class:
@@ -478,8 +478,8 @@ Configuration options for the <ApiLink to="class/RedisStorageClient">`RedisStora
478
478
479
479
Configuration options for the <ApiLinkto="class/RedisStorageClient">`RedisStorageClient`</ApiLink> can be set via constructor arguments:
480
480
481
-
-**`connection_string`**– Redis connection string, e.g. `redis://localhost:6379/0`.
0 commit comments