Skip to content

Commit ef8f676

Browse files
authored
Merge pull request #552 from AnswerDotAI/doc-Database-database
Minidata API Spec cleanup
2 parents 3b6c700 + d350fb5 commit ef8f676

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nbs/explains/minidataapi.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"FastLite version\n",
4848
"```python\n",
4949
"from fastlite import *\n",
50-
"db = Database('test.db')\n",
50+
"db = database('test.db')\n",
5151
"```\n",
5252
":::\n",
5353
"::: {.column width=\"79%\" style=\"padding-left: 10px;\"}\n",
@@ -1169,9 +1169,9 @@
11691169
"cell_type": "markdown",
11701170
"metadata": {},
11711171
"source": [
1172-
"If we set fields within the `.xtra` function to a particular value, then indexing is also filtered by those. This applies to every database method except for record creation. This makes it easier to limit users (or other objects) access to only things for which they have permission.\n",
1172+
"If we set fields within the `.xtra` function to a particular value, then indexing is also filtered by those. This applies to every database method except for record creation. This makes it easier to limit users (or other objects) access to only things for which they have permission. This is a one-way operation, once set it can't be undone for a particular table object.\n",
11731173
"\n",
1174-
"For example, if we query all our records below without setting values v ia the `.xtra` function, we can see todos for everyone. Pay special attention to the `id` values of all three records, as we are about to filter most of them away."
1174+
"For example, if we query all our records below without setting values via the `.xtra` function, we can see todos for everyone. Pay special attention to the `id` values of all three records, as we are about to filter most of them away."
11751175
]
11761176
},
11771177
{

nbs/tutorials/quickstart_for_web_devs.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@
829829
"metadata": {},
830830
"outputs": [],
831831
"source": [
832-
"db = Database(\"profiles.db\")\n",
832+
"db = database(\"profiles.db\")\n",
833833
"profiles = db.create(Profile, pk=\"email\")"
834834
]
835835
},

0 commit comments

Comments
 (0)