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;
|
position: absolute;
|
||||||
top: calc(100% + 10px);
|
top: calc(100% + 10px);
|
||||||
left: 0;
|
left: 0;
|
||||||
|
z-index: 10000;
|
||||||
}
|
}
|
||||||
.page-action-menu .icon-text {
|
.page-action-menu .icon-text {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
|
@ -26,6 +26,7 @@ class IndexView(BaseView):
|
||||||
async def get(self, request):
|
async def get(self, request):
|
||||||
as_format = request.url_vars["format"]
|
as_format = request.url_vars["format"]
|
||||||
await self.ds.ensure_permissions(request.actor, ["view-instance"])
|
await self.ds.ensure_permissions(request.actor, ["view-instance"])
|
||||||
|
metadata = (self.ds.metadata("databases") or {})
|
||||||
databases = []
|
databases = []
|
||||||
for name, db in self.ds.databases.items():
|
for name, db in self.ds.databases.items():
|
||||||
database_visible, database_private = await self.ds.check_visibility(
|
database_visible, database_private = await self.ds.check_visibility(
|
||||||
|
@ -124,6 +125,7 @@ class IndexView(BaseView):
|
||||||
"hidden_tables_count": len(hidden_tables),
|
"hidden_tables_count": len(hidden_tables),
|
||||||
"views_count": len(views),
|
"views_count": len(views),
|
||||||
"private": database_private,
|
"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.
|
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:
|
To return the newly inserted rows, add the ``"return": true`` key to the request body:
|
||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: json
|
||||||
|
|
Ładowanie…
Reference in New Issue