aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2025-01-08 13:14:40 +0100
committerSébastien Dailly <sebastien@dailly.me>2025-01-08 13:14:57 +0100
commit413b86050e364db51eb4f1bb095f70b141c02919 (patch)
treec46bbbfdb3aeafbd27b487ae051441da2085e876
parent9473b2c009961d2e66a31673c38831b59528b706 (diff)
Updated the examples
-rw-r--r--examples/example_csv.toml4
-rw-r--r--examples/importer.toml9
2 files changed, 6 insertions, 7 deletions
diff --git a/examples/example_csv.toml b/examples/example_csv.toml
index 1374515..5586750 100644
--- a/examples/example_csv.toml
+++ b/examples/example_csv.toml
@@ -19,13 +19,13 @@ version = 1
[sheet]
columns = [
":A",
- "concat(\"-\", :A, :target.E, :B)",
+ "join('-', :A, :target.E, :B)",
":C",
"""counter(
[:C],
[:A])""",
":E",
- "match(\"\\(..\\)\", :B)",
+ "match('(..)', :B)",
":D",
"counter([:D] ,[:A])"
]
diff --git a/examples/importer.toml b/examples/importer.toml
index 4be6618..08e9e25 100644
--- a/examples/importer.toml
+++ b/examples/importer.toml
@@ -1,5 +1,3 @@
-version = 1
-
[source]
file = "financial.xlsx"
name = "source"
@@ -19,12 +17,13 @@ version = 1
[sheet]
columns = [
":target.A ^ '\\''", # Ensure the quote is escaped before sending to the sql engine
- "concat('-', :A, :target.E, :B)",
+ "join('-', :A, :target.E, :B)",
":C",
"counter([:C], [:A])",
"sum(:F, [:B, :C, :D], [:B])",
- "int(1) = counter([:C], [:A])",
- ":E", "match('(..)', :B)",
+ "1 = counter([:C], [:A])",
+ ":E",
+ "match('(..)', :B)",
":D",
"counter([:D], [:A])",
"year(:N)",