Skip to content

Commit

Permalink
Merge pull request #197 from memgraph/fix-readme-examples
Browse files Browse the repository at this point in the history
[master < fix-readme-examples] Fix the order of code samples
  • Loading branch information
kgolubic committed Nov 9, 2022
2 parents 2d5c3c6 + 80044de commit d83c296
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,23 @@ You can create and start Kafka or Pulsar stream using GQLAlchemy.

**Kafka stream**
```python
from gqlalchemy import MemgraphPulsarStream
from gqlalchemy import MemgraphKafkaStream

stream = MemgraphPulsarStream(name="ratings_stream", topics=["ratings"], transform="movielens.rating", service_url="localhost:6650")
stream = MemgraphKafkaStream(name="ratings_stream", topics=["ratings"], transform="movielens.rating", bootstrap_servers="localhost:9093")
db.create_stream(stream)
db.start_stream(stream)
```


**Pulsar stream**
```python
from gqlalchemy import MemgraphKafkaStream
from gqlalchemy import MemgraphPulsarStream

stream = MemgraphKafkaStream(name="ratings_stream", topics=["ratings"], transform="movielens.rating", bootstrap_servers="localhost:9093")
stream = MemgraphPulsarStream(name="ratings_stream", topics=["ratings"], transform="movielens.rating", service_url="localhost:6650")
db.create_stream(stream)
db.start_stream(stream)
```

</details>

<details>
Expand Down

0 comments on commit d83c296

Please sign in to comment.