Peasys 1.0.0

dotnet add package Peasys --version 1.0.0
NuGet\Install-Package Peasys -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Peasys" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Peasys --version 1.0.0
#r "nuget: Peasys, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Peasys as a Cake Addin
#addin nuget:?package=Peasys&version=1.0.0

// Install Peasys as a Cake Tool
#tool nuget:?package=Peasys&version=1.0.0

Peasys dotnet

[NuGet [Build Status

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:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages...
  4. Click on the Browse tab and search for "Peasys".
  5. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 75 6/6/2024

First version of our newly created Peasys solution