You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Splay table, rsync sym to backup dir, output same as .Q.en
184
-
q)qenBackup:{[backupdir]`:db/t/ set .Q.en[`:db;t];system”rsync db/sym ”,backupdir;(),`t}
184
+
q)qenBackup:{[backupdir]`:db/t/ set .Q.en[`:db;t];system"rsync db/sym ",backupdir;(),`t}
185
185
// Backup to a tmp dir for example
186
186
q)qenBackup”/tmp/bkup/”
187
187
,`t
@@ -197,7 +197,7 @@ q)get`:/tmp/bkup/sym
197
197
Updating the table and splaying again:
198
198
199
199
```q
200
-
q)`t upsert `col1`col2`col3!(`FB;23.1;”xq”)
200
+
q)`t upsert `col1`col2`col3!(`FB;23.1;"xq")
201
201
q)qenBackup”/tmp/bkup/”
202
202
,`t
203
203
```
@@ -212,13 +212,13 @@ q)get`:/tmp/bkup/sym
212
212
213
213
## `.Q.ens`
214
214
215
-
`.Q.ens` allows enumeration against a domain other than sym. It takes the
215
+
[`.Q.ens`](../ref/dotq.md#ens-enumerate-against-domain) allows enumeration against a domain other than sym. It takes the
216
216
same arguments as `.Q.en` as well as the name of the domain to enumerate
217
217
to, i.e. `.Q.ens[dir;table;enum]`.
218
218
219
219
```q
220
220
q)`:db/t/ set .Q.ens[`:db;t;`symt]
221
-
q)system"ls ~/db"
221
+
q)system"ls db"
222
222
"symt"
223
223
,"t"
224
224
q)get `:db/symt
@@ -232,8 +232,8 @@ Depending on the system setup, it could be beneficial to enumerate data
232
232
against multiple sym files within the one process, i.e. within one
233
233
database there could be two tables, each with their own sym files.
234
234
235
-
This functionality is provided using the aforementioned `.Q.ens` and
236
-
`.Q.dpfts`.`.Q.dpfts` functions the same as `.Q.dpft`, except we can specify
235
+
This functionality is provided using the aforementioned [`.Q.ens`](../ref/dotq.md#ens-enumerate-against-domain) and
236
+
[`.Q.dpfts`](../ref/dotq.md#dpfts-save-table-with-symtable).`.Q.dpfts` functions the same as [`.Q.dpft`](../ref/dotq.md#dpft-save-table), except we can specify
237
237
the domain we want to enumerate to.
238
238
239
239
```q
@@ -331,7 +331,7 @@ q)count get`:db1/sym
331
331
### Updating data and enumerations on disk
332
332
333
333
When adding a column of type symbol to a database we must enumerate this
334
-
column to prevent a type error when writing to disk. The `dbmaint.q`
334
+
column to prevent a type error when writing to disk. The [`dbmaint.q`](https://github.com/KxSystems/kdb/tree/master/utils)
335
335
script makes this very easy for developers, as it already has predefined
336
336
functions that consider the type of the column being added.
337
337
@@ -372,7 +372,7 @@ sym file, you will not be able to write to the sym file. A _no append
372
372
to zipped enums_ error is displayed if this occurs.
@@ -428,7 +428,7 @@ vectors and take 2.5 times less storage (16 per instead of 40 per).
428
428
429
429
### Encoding/decoding
430
430
431
-
The functions `.Q.j10` and `.Q.x10` (encode/decode binhex) and `.Q.j12` and `.Q.x12`
431
+
The functions [`.Q.j10`](../ref/dotq.md#j10-encode-binhex) and [`.Q.x10`](../ref/dotq.md#x10-decode-binhex) (encode/decode binhex) and [`.Q.j12`](../ref/dotq.md#j12-encode-base-36) and [`.Q.x12`](../ref/dotq.md#x12-decode-base-36)
432
432
(encode/decode base64) return a string encoded or decoded against
433
433
restricted alphabets. The main use of these functions is to encode long
434
434
alphanumeric identifiers (CUSIP, ORDERID, etc.) so they can be quickly
0 commit comments