Comments (4)
I will come back to you asap. Can you give me an example of your code?
from etl.net.
I will come back to you asap. Can you give me an example of your code?
I know how to use it. Can I add some test cases to this project?
It took me some time to find out how to use them
using System;
using System.Threading.Tasks;
using Paillave.Etl.Core;
namespace SimpleTutorial
{
class Program
{
static async Task Main(string[] args)
{
var processRunner = StreamProcessRunner.Create<string>(DefineProcess);
var res = await processRunner.ExecuteAsync("InputFiles");
Console.Write(res.Failed ? "Failed" : "Succeeded");
}
private static void DefineProcess(ISingleStream<string> contextStream)
{
contextStream.CrossApplyFolderFiles("get data", "*.csv")
.CrossApplyTextFile("Parse data", FlatFileDefinition.Create(i => new
{
a = i.ToColumn("a")
}).IsColumnSeparated(','))
////.CrossApplyExcelSheets("dani")
//.CrossApplyExcelRows("get rows", o => new { a = "!"})
.ToExcelFile("to excel", "ex.xlsx", ExcelFileDefinition.Create(i => new
{
a = i.ToColumn("b")
}).HasColumnHeader("A1:C1")
.WithDataset("A2:C2"))
.WriteToFile("write", i => i.Name);
// TODO: Define the ETL process here
}
}
}
from etl.net.
Sorry for this, I tried to find some time yesterday to provide an example. As I mentioned on the cast, documentation is an ongoing project and I'm glad questions are posted here to mitigate this (temporary) lack.
Bty, I will make some changes to provide a more straightforward way to read/write excels (with HasColumnHeader
and WithDataset
being optional)
from etl.net.
Can I add some test cases to this project?
Every pull request is more than welcome!
There was a time when I had bunch of them, but I put them apart since the new version. This is also a work to be done.
from etl.net.
Related Issues (20)
- support hl7? HOT 2
- Mysql support HOT 1
- Code Sample for reading excel files HOT 5
- Is there a way to await async operations inside of `.Select(...)`, `.CrossApply(...)`, `.Do(...)`? HOT 1
- need to enable MultipleActiveResultSets in connectionString when i have 2 sql upsert in the same DefineProcess HOT 5
- Documentation to Deal with dependency injection for Unit tests HOT 1
- How to read XML file HOT 3
- Warehousing - copy data from one database to another HOT 15
- How do you process an uploaded file to a Web API? HOT 6
- [Question] - Plans to define a DAG to capture the ETL process HOT 1
- Handling multiline text column HOT 10
- Question: connecting to old SQL server HOT 15
- Question: error path handling HOT 4
- Question: calling stored procedure which returns values HOT 5
- Getting two database streams from the same database connection in parallel HOT 5
- Getting in-memory list from the database stream HOT 13
- EF Core Spatial Integration HOT 4
- StreamProcessRunner is holding file in memory when I need it not to do that HOT 1
- Reusing DB context issue with large collections HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etl.net.