{"repo":"brianpursley/Npgmq","free":true,"listed":false,"github":"https://github.com/brianpursley/Npgmq","clone":"git clone https://github.com/brianpursley/Npgmq.git","description":"A .NET client for Postgres Message Queue (PGMQ).","language":"C#","stars":65,"topics":["csharp","dotnet","pgmq","postgres","postgresql","queues"],"license":"MIT","category":"databases-storage","readme_excerpt":"Npgmq A .NET client for Postgres Message Queue (PGMQ). Installation To install the package via Nuget, run the following command: Recommended Usage (TL;DR) Creating NpgmqClient When creating an NpgmqClient instance, the recommended approach is to use an NpgsqlDataSource. This provides the best connection pooling, performance, and safety. You can also construct the client with a connection string or an existing NpgsqlConnection, but those options have tradeoffs. See Database Connection below. Using Dependency Injection (ASP.NET Core) For ASP.NET Core applications, register NpgmqClient in the DI container using one of the following methods: Basic Example Additional Examples For more complete examples, see the following projects included in this repository: Npgmq.Example.Console Npgmq.Example.Web JSON Messages (Custom Serialization) If you want full control over JSON serialization, you can send and receive messages as string: Important: When sending messages as string, the value must contain valid JSON. NpgmqClient does not validate or escape string messages. Invalid JSON will cause the database call to fail. Database Connection Npgmq uses Npgsql internally to connect to the database. Using NpgsqlDataSource (Recommended) This is the preferred approach and provides optimal pooling and configuration. Using a Connection String Connections are created as needed using the provided connection string. Using an Existing NpgsqlConnection When using this constructor: You are responsible fo","default_branch":null,"files":null,"tree":[],"storefront":"/r/brianpursley","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/brianpursley/Npgmq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}