mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 05:12:18 +00:00
chore: fixing docs
This commit is contained in:
parent
b6c9f6a513
commit
64354edaec
3 changed files with 5 additions and 3 deletions
|
|
@ -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:
|
||||
|
||||

|
||||
|
||||
Changing data type enables corresponding controls.
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 58 KiB |
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue