ydb-embedded-ui 4.15.0 → 4.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.15.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.15.0...v4.15.1) (2023-08-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **SchemaTree:** update create table template ([#512](https://github.com/ydb-platform/ydb-embedded-ui/issues/512)) ([712b3f3](https://github.com/ydb-platform/ydb-embedded-ui/commit/712b3f3612b09fdc5c850ffc3a984cd86827e5b9))
9
+
3
10
  ## [4.15.0](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.14.0...v4.15.0) (2023-08-17)
4
11
 
5
12
 
@@ -1,10 +1,34 @@
1
1
  export const createTableTemplate = (path: string) => {
2
- return `CREATE TABLE \`${path}/my_table\`
3
- (
4
- \`id\` Uint64,
5
- \`name\` String,
6
- PRIMARY KEY (\`id\`)
7
- );`;
2
+ return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table
3
+ CREATE TABLE \`${path}/ydb_row_table\` (
4
+ category_id Uint64 NOT NULL,
5
+ id Uint64,
6
+ expire_at Datetime,
7
+ updated_on Datetime,
8
+ name Text,
9
+ \`binary-payload\` Bytes,
10
+ attributes JsonDocument,
11
+ -- uncomment to add a secondary index
12
+ -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index
13
+ PRIMARY KEY (category_id, id)
14
+ )
15
+ WITH (
16
+ AUTO_PARTITIONING_BY_SIZE = ENABLED,
17
+ AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,
18
+ AUTO_PARTITIONING_BY_LOAD = ENABLED,
19
+ AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,
20
+ AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024,
21
+ -- uncomment to create a table with predefined partitions
22
+ -- UNIFORM_PARTITIONS = 4, -- The number of partitions for uniform initial table partitioning.
23
+ -- The primary key's first column must have type Uint64 or Uint32.
24
+ -- A created table is immediately divided into the specified number of partitions
25
+ -- uncomment to launch read only replicas in every AZ
26
+ -- READ_REPLICAS_SETTINGS = 'PER_AZ:1', -- Enable read replicas for stale read, launch one replica in every availability zone
27
+ -- uncomment to enable ttl
28
+ -- TTL = Interval("PT1H") ON expire_at, -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
29
+ KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine
30
+ -- if some keys are missing in a table when making multiple single queries by the primary key.
31
+ )`;
8
32
  };
9
33
  export const alterTableTemplate = (path: string) => {
10
34
  return `ALTER TABLE \`${path}\`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],