-
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.
Update
rename_columns
to new API design, add first_row
, `second_r…
…ow` and `last_row` functions to the table. (#5719) - Updates the `rename_columns` API. - Add `first_row`, `second_row` and `last_row` to the Table types. - New option for reading only last row of ResultSet.
- Loading branch information
1 parent
b8158d0
commit 652b8d5
Showing
21 changed files
with
305 additions
and
231 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,7 +229,7 @@ Text.characters self = | |
"aabbbbccccaaBcaaaa".find "a[ab]c" Case_Sensitivity.Insensitive | ||
Text.find : Text -> Case_Sensitivity -> Match | Nothing ! Compile_Error | ||
Text.find self pattern=".*" case_sensitivity=Case_Sensitivity.Sensitive = | ||
case_insensitive = case_sensitivity.is_case_insensitive | ||
case_insensitive = case_sensitivity.is_case_insensitive_in_memory | ||
Regex.compile pattern case_insensitive=case_insensitive . match self Matching_Mode.First | ||
|
||
## Finds all the matches of the regular expression `pattern` in `self`, | ||
|
@@ -251,7 +251,7 @@ Text.find self pattern=".*" case_sensitivity=Case_Sensitivity.Sensitive = | |
"aABbbbccccaaBCaaaa".find_all "a[ab]+c" Case_Sensitivity.Insensitive | ||
Text.find_all : Text -> Case_Sensitivity -> Vector Match ! Compile_Error | ||
Text.find_all self pattern=".*" case_sensitivity=Case_Sensitivity.Sensitive = | ||
case_insensitive = case_sensitivity.is_case_insensitive | ||
case_insensitive = case_sensitivity.is_case_insensitive_in_memory | ||
case Regex.compile pattern case_insensitive=case_insensitive . match self Regex_Mode.All of | ||
Nothing -> [] | ||
matches -> matches | ||
|
@@ -278,7 +278,7 @@ Text.find_all self pattern=".*" case_sensitivity=Case_Sensitivity.Sensitive = | |
"[email protected]".match regex Case_Sensitivity.Insensitive | ||
Text.match : Text -> Case_Sensitivity -> Boolean ! Compile_Error | ||
Text.match self pattern=".*" case_sensitivity=Case_Sensitivity.Sensitive = | ||
case_insensitive = case_sensitivity.is_case_insensitive | ||
case_insensitive = case_sensitivity.is_case_insensitive_in_memory | ||
compiled_pattern = Regex.compile pattern case_insensitive=case_insensitive | ||
compiled_pattern.matches self | ||
|
||
|
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
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
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.