Skip to content

Commit 8c67fce

Browse files
fix the readme description of the brick dbstorage_sqlstore (#20)
1 parent ccf9db3 commit 8c67fce

File tree

1 file changed

+2
-2
lines changed
  • src/arduino/app_bricks/dbstorage_sqlstore

1 file changed

+2
-2
lines changed

src/arduino/app_bricks/dbstorage_sqlstore/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ db = SQLStore("example.db")
3535
# ... Do work
3636

3737
# Close database
38-
db.close()
38+
db.stop()
3939
```
4040

4141
To create a new table:
@@ -65,4 +65,4 @@ db.store("users", data)
6565

6666
The SQLStore automatically creates a directory structure for database storage, placing files in `data/dbstorage_sqlstore/` within your application directory. The brick supports automatic type inference when creating tables, mapping Python types (*int*, *float*, *str*, *bytes*) to corresponding SQLite column types (*INTEGER*, *REAL*, *TEXT*, *BLOB*).
6767

68-
The `store()` method can automatically create tables if they don't exist by analyzing the data types of the provided values. This makes it easy to get started without defining schemas upfront, while still allowing explicit table creation for more control over column definitions and constraints.
68+
The `store()` method can automatically create tables if they don't exist by analyzing the data types of the provided values. This makes it easy to get started without defining schemas upfront, while still allowing explicit table creation for more control over column definitions and constraints.

0 commit comments

Comments
 (0)