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: README.md
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# MicroCrate - A CrateDB Driver for MicroPython
1
+
# micropython-cratedb - A CrateDB Driver for MicroPython
2
2
3
3
## Introduction
4
4
5
-
MicroCrate is a [CrateDB](https://cratedb.com) driver for the [MicroPython](https://micropython.org) language. It connects to CrateDB using the [HTTP Endpoint](https://cratedb.com/docs/crate/reference/en/latest/interfaces/http.html).
5
+
micropython-cratedb is a [CrateDB](https://cratedb.com) driver for the [MicroPython](https://micropython.org) language. It connects to CrateDB using the [HTTP Endpoint](https://cratedb.com/docs/crate/reference/en/latest/interfaces/http.html).
6
6
7
7
To use this, you'll need a CrateDB database cluster. Sign up for our cloud free tier [here](https://console.cratedb.cloud/) or get started with Docker [here](https://hub.docker.com/_/crate).
Connect to a CrateDB cluster in the cloud by providing hostname, user name and password:
50
50
51
51
```python
52
-
crate =microcrate.CrateDB(
52
+
crate =cratedb.CrateDB(
53
53
host="host",
54
54
user="user",
55
55
password="password"
@@ -61,7 +61,7 @@ The driver uses SSL by default.
61
61
If you're running CrateDB locally (with Docker for example), connect like this:
62
62
63
63
```python
64
-
crate =microcrate.CrateDB(
64
+
crate =cratedb.CrateDB(
65
65
host="hostname",
66
66
use_ssl=False
67
67
)
@@ -70,7 +70,7 @@ crate = microcrate.CrateDB(
70
70
The driver will connect to port 4200 unless you provide an alternative value:
71
71
72
72
```python
73
-
crate =microcrate.CrateDB(
73
+
crate =cratedb.CrateDB(
74
74
host="host",
75
75
user="user",
76
76
port=4201,
@@ -287,7 +287,7 @@ The response includes the number of rows affected by the update:
287
287
288
288
CrateDB supports flexible storage and indexing of objects / JSON data. To learn more about this, check out our [blog post](https://cratedb.com/blog/handling-dynamic-objects-in-cratedb) that explains the different ways objects can be stored.
289
289
290
-
Here are some basic examples showing how to store objects with MicroCrate and retrieve desired fields from them.
290
+
Here are some basic examples showing how to store objects with micropython-cratedb and retrieve desired fields from them.
291
291
292
292
Assume a table with the following definition having a [dynamic object](https://cratedb.com/blog/handling-dynamic-objects-in-cratedb) column:
293
293
@@ -389,7 +389,7 @@ The driver can throw the following types of exception:
389
389
Here's an example showing how to catch a network error:
* macOS/darwin ([install with Homebrew package manager](https://formulae.brew.sh/formula/micropython))
450
+
* Raspberry Pi Pico W ([download](https://micropython.org/download/RPI_PICO_W/))
451
+
***1.23.0**
452
+
* macOS/darwin ([install with Homebrew package manager](https://formulae.brew.sh/formula/micropython))
453
+
* Raspberry Pi Pico W ([download](https://micropython.org/download/RPI_PICO_W/))
454
+
***1.23.0 (Pimoroni build)**
455
+
* Raspberry Pi Pico W ([download](https://github.com/pimoroni/pimoroni-pico/releases))
453
456
454
-
If you have other microcontroller boards that you can test the driver with or provide examples for, we'd love to receive a pull request!
457
+
If you have other microcontroller boards that you can test the driver with or provide examples for, we'd love to receive a [pull request](/pulls)!
455
458
456
459
## Need Help?
457
460
458
461
If you need help, have a bug report or feature request, or just want to show us your project that uses this driver then we'd love to hear from you!
459
462
460
-
For bugs or feature requests, please raise an issue on GitHub. We also welcome pull requests!
463
+
For bugs or feature requests, please raise an [issue](/issues) on GitHub. We also welcome [pull requests](/pulls)!
461
464
462
465
If you have a project to share with us, or a more general question about this driver or CrateDB, please post in our [community forum](https://community.cratedb.com/).
Copy file name to clipboardExpand all lines: examples/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# MicroCrate Examples
1
+
# micropython-cratedb Examples
2
2
3
-
This folder contains code samples and fully working example code for the MicroCrate driver.
3
+
This folder contains code samples and fully working example code for the micropython-cratedb driver.
4
4
5
5
*`example_usage.py`: Demonstrates various types of query. This does not have any specific microcontroller dependencies, and can be run on desktop MicroPython.
6
6
*`object_examples.py`: Demonstrates operations using an [OBJECT](https://cratedb.com/docs/crate/reference/en/latest/general/ddl/data-types.html#objects) column in CrateDB. Also demonstrates the use of the [ARRAY](https://cratedb.com/docs/crate/reference/en/latest/general/ddl/data-types.html#array) container data type.
0 commit comments