Skip to content

Commit

Permalink
Merge pull request #552 from AnswerDotAI/doc-Database-database
Browse files Browse the repository at this point in the history
Minidata API Spec cleanup
  • Loading branch information
jph00 authored Nov 5, 2024
2 parents 3b6c700 + d350fb5 commit ef8f676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nbs/explains/minidataapi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"FastLite version\n",
"```python\n",
"from fastlite import *\n",
"db = Database('test.db')\n",
"db = database('test.db')\n",
"```\n",
":::\n",
"::: {.column width=\"79%\" style=\"padding-left: 10px;\"}\n",
Expand Down Expand Up @@ -1169,9 +1169,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"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",
"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",
"\n",
"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."
"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."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion nbs/tutorials/quickstart_for_web_devs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
"metadata": {},
"outputs": [],
"source": [
"db = Database(\"profiles.db\")\n",
"db = database(\"profiles.db\")\n",
"profiles = db.create(Profile, pk=\"email\")"
]
},
Expand Down

0 comments on commit ef8f676

Please sign in to comment.