kopia lustrzana https://github.com/simonw/datasette
Porównaj commity
4 Commity
7d5a76746e
...
09848060b5
Autor | SHA1 | Data |
---|---|---|
Ben Welsh | 09848060b5 | |
Simon Willison | 19b6a37336 | |
Simon Willison | 1edb24f124 | |
Ben Welsh | 912ed9de92 |
|
@ -375,6 +375,7 @@ form.nav-menu-logout {
|
|||
position: absolute;
|
||||
top: calc(100% + 10px);
|
||||
left: 0;
|
||||
z-index: 10000;
|
||||
}
|
||||
.page-action-menu .icon-text {
|
||||
display: inline-flex;
|
||||
|
|
|
@ -26,6 +26,7 @@ class IndexView(BaseView):
|
|||
async def get(self, request):
|
||||
as_format = request.url_vars["format"]
|
||||
await self.ds.ensure_permissions(request.actor, ["view-instance"])
|
||||
metadata = (self.ds.metadata("databases") or {})
|
||||
databases = []
|
||||
for name, db in self.ds.databases.items():
|
||||
database_visible, database_private = await self.ds.check_visibility(
|
||||
|
@ -124,6 +125,7 @@ class IndexView(BaseView):
|
|||
"hidden_tables_count": len(hidden_tables),
|
||||
"views_count": len(views),
|
||||
"private": database_private,
|
||||
"metadata": metadata.get(name, {}),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -568,6 +568,8 @@ To insert multiple rows at a time, use the same API method but send a list of di
|
|||
|
||||
If successful, this will return a ``201`` status code and a ``{"ok": true}`` response body.
|
||||
|
||||
The maximum number rows that can be submitted at once defaults to 100, but this can be changed using the :ref:`setting_max_insert_rows` setting.
|
||||
|
||||
To return the newly inserted rows, add the ``"return": true`` key to the request body:
|
||||
|
||||
.. code-block:: json
|
||||
|
|
Ładowanie…
Reference in New Issue