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
The following constructor parameters should be provided:
48
+
When `dataSourceId` is not provided as shown above, the reader automatically discovers it from the database. The reader will query the database metadata to retrieve the first available data source.
49
+
50
+
### Advanced Usage (Manual Data Source Selection)
51
+
52
+
If the given Notion database has multiple data sources, you can specify the data source ID directly:
53
+
54
+
```java
55
+
NotionDatabaseItemReader<Item> itemReader() {
56
+
String token =System.getenv("NOTION_TOKEN");
57
+
String databaseId ="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; // Database ID (UUID)
58
+
String dataSourceId ="YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY"; // Data Source ID (UUID)
0 commit comments