mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 23:06:01 +00:00
mongodb json view default collection page size #976
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
import contextMenu, { getContextMenu, registerMenu } from '../utility/contextMenu';
|
import contextMenu, { getContextMenu, registerMenu } from '../utility/contextMenu';
|
||||||
import CollectionJsonRow from './CollectionJsonRow.svelte';
|
import CollectionJsonRow from './CollectionJsonRow.svelte';
|
||||||
|
import { getIntSettingsValue } from '../settings/settingsTools';
|
||||||
|
|
||||||
export let conid;
|
export let conid;
|
||||||
export let database;
|
export let database;
|
||||||
@@ -34,7 +35,7 @@
|
|||||||
|
|
||||||
let loadedRows = [];
|
let loadedRows = [];
|
||||||
let skip = 0;
|
let skip = 0;
|
||||||
let limit = 50;
|
let limit = getIntSettingsValue('dataGrid.collectionPageSize', 50, 5, 1000);
|
||||||
|
|
||||||
async function loadData() {
|
async function loadData() {
|
||||||
isLoading = true;
|
isLoading = true;
|
||||||
|
|||||||
@@ -140,6 +140,12 @@ ORDER BY
|
|||||||
|
|
||||||
<FormCheckboxField name="dataGrid.alignNumbersRight" label="Align numbers to right" defaultValue={false} />
|
<FormCheckboxField name="dataGrid.alignNumbersRight" label="Align numbers to right" defaultValue={false} />
|
||||||
|
|
||||||
|
<FormTextField
|
||||||
|
name="dataGrid.collectionPageSize"
|
||||||
|
label="Collection page size (for MongoDB JSON view, must be between 5 and 1000)"
|
||||||
|
defaultValue="50"
|
||||||
|
/>
|
||||||
|
|
||||||
<div class="heading">SQL editor</div>
|
<div class="heading">SQL editor</div>
|
||||||
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
|||||||
Reference in New Issue
Block a user