chore: fixing docs

This commit is contained in:
Kacper Kula 2025-05-16 23:41:18 +01:00
parent b6c9f6a513
commit 64354edaec
3 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,7 @@
# Define Column Types
# Define Column Types (CSV files)
SQLSeal sets types of your data automatically. This is the mechanism which for most of the cases works perfectly, but for more advanced use-cases, you might want to force specific type of the column (for example you might have ids which you want to treat like text, even if they consist of just the numbers). To enforce the specific type, you can set individual types inside the CSV Viewer:
SQLSeal sets types of your data automatically. This is the mechanism which for most of the cases works perfectly, but for more advanced use-cases, you might want to force specific type of the column (for example you might have ids which you want to treat like text, even if they consist of just the numbers). To enforce a specific type, you can set individual types inside the CSV Viewer:
![Setting Column Type](./setting-column-type.png)
Changing data type enables corresponding controls.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View file

@ -233,7 +233,7 @@ export class CSVView extends TextFileView {
if (d[key] === null || d[key] === '') {
d[key] = ''
} else {
d[key] = parseInt(d[key] as string, 10)
d[key] = parseFloat(d[key] as string)
}
}
if (value.type === 'date') {