-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Closes #9952
- Loading branch information
Showing
17 changed files
with
774 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
187 changes: 95 additions & 92 deletions
187
distribution/lib/Standard/Database/0.0.0-dev/src/DB_Table.enso
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
distribution/lib/Standard/Table/0.0.0-dev/src/Columns_To_Keep.enso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from Standard.Base import Vector, Text | ||
from Standard.Base.Metadata import make_single_choice, Widget | ||
|
||
## Specifies which columns to keep in a union operation. | ||
type Columns_To_Keep | ||
## All columns are kept. | ||
|
||
If a column is present only in some of the tables, it is padded with | ||
`Nothing` for tables where it is missing. | ||
In_Any | ||
|
||
## Only columns that are present in all tables are kept. | ||
|
||
If there are columns that are only present in some of the tables, | ||
a problem is reported. | ||
In_All | ||
|
||
## Specific list of column names to keep. | ||
|
||
If a table does not have a column that is specified in the list, it is | ||
padded with `Nothing` and a problem is reported. | ||
In_List (column_names : Vector Text) | ||
|
||
## PRIVATE | ||
Same as `In_Any`, but it will warn about columns that are not present in | ||
all tables. | ||
In_Any_Warn_On_Missing | ||
|
||
## PRIVATE | ||
The default widget for `Columns_To_Keep`. | ||
It does not display the internal `In_Any_Warn_On_Missing` variant, since | ||
that variant is only meant to be used as the default value. | ||
default_widget -> Widget = | ||
make_single_choice <| | ||
["In_Any", "In_All", "In_List"].map c-> [c, ".."+c] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.