Peasys 1.0.1
See the version list below for details.
dotnet add package Peasys --version 1.0.1
NuGet\Install-Package Peasys -Version 1.0.1
<PackageReference Include="Peasys" Version="1.0.1" />
paket add Peasys --version 1.0.1
#r "nuget: Peasys, 1.0.1"
// Install Peasys as a Cake Addin #addin nuget:?package=Peasys&version=1.0.1 // Install Peasys as a Cake Tool #tool nuget:?package=Peasys&version=1.0.1
Peasys dotnet
[ [
The official [Peasys][dips400] .NET library, supporting .NET Standard 6.0+
Installation
Using the .NET Core command-line interface (CLI) tools:
dotnet add package Peasys
Using the NuGet Command Line Interface (CLI).
nuget install Peasys
Using the Package Manager Console:
Install-Package Peasys
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "Peasys".
- Click on the Peasys package, select the appropriate version in the right-tab and click Install.
Documentation
For a comprehensive list of examples, check out the documentation.
Usage
License key
Peasys is a tool used along a license that should be found on the dips400 website. This license key is required for the use of the service Peasys.
Connexion to the server
PeaClient conn = new PeaClient("PARITION_NAME", PORT, "USERNAME", "PASSWORD", "FUTUR_LICENSE_KEY");
Console.WriteLine("Status de connexion : " + conn.ConnectionMessage);
Query the DB2
For example, use the ExecuteCreate
method of the PeaClient
class in order to create a a new table in the database.
PeaCreateResponse createResponse = conn.ExecuteCreate("CREATE TABLE schema_name/table_name (name CHAR(10), age INT)");
Console.WriteLine(createResponse.ReturnedSQLMessage);
Console.WriteLine(createResponse.ReturnedSQLState);
Deconnexion
It is important to always disconnect from the server after you used the connexion.
conn.Disconnect();
Support
New features and bug fixes are released on the latest major version of the Peasys .NET client library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
Development
Run all tests from the src/PeasysTests
directory:
dotnet test
The library uses dotnet-format
for code formatting. Code
must be formatted before PRs are submitted. Run the
formatter with:
dotnet format src/Peasys.sln
For any requests, bug or comments, please [open an issue][issues] or [submit a pull request][pulls].
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
First version of our newly created Peasys solution