Read from a MongoDB collection.
(self, uri: str, database: str, collection: str, **kwargs)
| 244 | return ray.data.read_webdataset(path, **kwargs) |
| 245 | |
| 246 | def read_mongo(self, uri: str, database: str, collection: str, **kwargs) -> Any: |
| 247 | """Read from a MongoDB collection.""" |
| 248 | return ray.data.read_mongo( |
| 249 | uri=uri, database=database, collection=collection, **kwargs |
| 250 | ) |
| 251 | |
| 252 | def read_sql(self, sql: str, connection_url: str, **kwargs) -> Any: |
| 253 | """Read from a SQL database. Builds the connection factory from connection_url.""" |
no outgoing calls
no test coverage detected