https://github.com/sqlizer-io/sqlizer-client-dotnet
A .NET Client for SQLizer's API
https://github.com/sqlizer-io/sqlizer-client-dotnet
Last synced: 5 months ago
JSON representation
A .NET Client for SQLizer's API
- Host: GitHub
- URL: https://github.com/sqlizer-io/sqlizer-client-dotnet
- Owner: sqlizer-io
- License: lgpl-3.0
- Created: 2019-03-08T20:14:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T20:31:58.000Z (about 1 year ago)
- Last Synced: 2024-08-03T22:17:41.025Z (8 months ago)
- Language: C#
- Size: 30.3 KB
- Stars: 21
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - sqlizer-io/sqlizer-client-dotnet - A .NET Client for SQLizer's API (C# #)
README
[](https://ci.appveyor.com/api/projects/status/github/sqlizer-io/sqlizer-client-dotnet?svg=true)
# sqlizer-client-dotnet
A .NET Client for [SQLizer](https://sqlizer.io)'s API
SQLizer lets you easily and securely convert Excel, JSON, CSV and other files into SQL databases with table definitions and multiple INSERT statements. We're free for non-commercial use on files with under 5000 rows of data and our paid plans enable you to use our powerful API to build data pipelines that handle billions of rows a day.
SQlizer's [API Help Documentation](https://sqlizer.io/help/api/)
## Getting Started
To convert a file, use to the SQLizerFile object, like this:
```csharp
SQLizerClient.Settings.ApiKey = "{your api key}"; // This can be found on https://sqlizer.io/account/var file = new SQLizerClient.SQLizerFile("source.xlsx");
file.DatabaseType = SQLizerClient.DatabaseType.MySQL;
file.TableName = "my_table";
file.HasHeaders = true;
file.SheetName = "Sheet1";
file.CellRange = "A1:C99";
file.CheckTableExists = true;
file.InsertSpacing = 250;await file.SaveResultAsync("destination.sql");
```