Skip to content

Commit 1b1d2e7

Browse files
authored
Update README.md (#9)
1 parent b1b067d commit 1b1d2e7

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

README.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,43 @@
1-
# Npgsql - the .NET data provider for PostgreSQL
1+
# GaussDB
22

3-
[![stable](https://img.shields.io/nuget/v/Npgsql.svg?label=stable)](https://www.nuget.org/packages/Npgsql/)
4-
[![next patch](https://img.shields.io/myget/npgsql/v/npgsql.svg?label=next%20patch)](https://www.myget.org/feed/npgsql/package/nuget/Npgsql)
5-
[![daily builds (vnext)](https://img.shields.io/myget/npgsql-vnext/v/npgsql.svg?label=vnext)](https://www.myget.org/feed/npgsql-vnext/package/nuget/Npgsql)
6-
[![build](https://github.com/npgsql/npgsql/actions/workflows/build.yml/badge.svg)](https://github.com/npgsql/npgsql/actions/workflows/build.yml)
7-
[![gitter](https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg)](https://gitter.im/npgsql/npgsql)
3+
[![PostgreSQL License](https://img.shields.io/badge/License-PostgreSQL-blue.svg)](https://opensource.org/licenses/PostgreSQL)
84

9-
## What is Npgsql?
105

11-
Npgsql is the open source .NET data provider for PostgreSQL. It allows you to connect and interact with PostgreSQL server using .NET.
126

13-
For the full documentation, please visit [the Npgsql website](https://www.npgsql.org). For the Entity Framework Core provider that works with this provider, see [Npgsql.EntityFrameworkCore.PostgreSQL](https://github.com/npgsql/efcore.pg).
7+
## What is GaussDB ?
8+
9+
GuassDB is an open-source database driver led by Huawei's open-source community and refactored based on npgsql. It is compatible with openGauss and Guass databases. [Open Source for Huawei](https://developer.huaweicloud.com/programs/opensource/contributing/) revolves around Huawei's technology ecosystems including Kunpeng, Ascend, HarmonyOS, and Huawei Cloud. Through collaboration with developers from enterprises, universities, and the open-source community, it enables adaptation development and solution validation for open-source software, ensuring smoother and more efficient operation on Huawei Cloud.
10+
11+
Before getting started, developers can download the [Open Source for Huawei Wiki](https://gitcode.com/HuaweiCloudDeveloper/OpenSourceForHuaweiWiki) to access detailed development procedures, technical preparations, and various resources required throughout the development process. If you have any questions during use, please visit the [GaussDB forum](https://bbs.huaweicloud.com/forum/forum-1350-1.html) for discussion.
12+
13+
1414

1515
## Quickstart
1616

1717
Here's a basic code snippet to get you started:
1818

1919
```csharp
20-
using Npgsql;
20+
using GaussDB;
2121

2222
var connString = "Host=myserver;Username=mylogin;Password=mypass;Database=mydatabase";
2323

24-
var dataSourceBuilder = new NpgsqlDataSourceBuilder(connString);
24+
var dataSourceBuilder = new GaussDataSourceBuilder(connString);
2525
var dataSource = dataSourceBuilder.Build();
2626

2727
var conn = await dataSource.OpenConnectionAsync();
2828

2929
// Insert some data
30-
await using (var cmd = new NpgsqlCommand("INSERT INTO data (some_field) VALUES (@p)", conn))
30+
await using (var cmd = new GaussCommand("INSERT INTO data (some_field) VALUES (@p)", conn))
3131
{
3232
cmd.Parameters.AddWithValue("p", "Hello world");
3333
await cmd.ExecuteNonQueryAsync();
3434
}
3535

3636
// Retrieve all rows
37-
await using (var cmd = new NpgsqlCommand("SELECT some_field FROM data", conn))
37+
await using (var cmd = new GaussCommand("SELECT some_field FROM data", conn))
3838
await using (var reader = await cmd.ExecuteReaderAsync())
3939
{
4040
while (await reader.ReadAsync())
4141
Console.WriteLine(reader.GetString(0));
4242
}
4343
```
44-
45-
## Key features
46-
47-
* High-performance PostgreSQL driver. Regularly figures in the top contenders on the [TechEmpower Web Framework Benchmarks](https://www.techempower.com/benchmarks/).
48-
* Full support of most PostgreSQL types, including advanced ones such as arrays, enums, ranges, multiranges, composites, JSON, PostGIS and others.
49-
* Highly-efficient bulk import/export API.
50-
* Failover, load balancing and general multi-host support.
51-
* Great integration with Entity Framework Core via [Npgsql.EntityFrameworkCore.PostgreSQL](https://www.nuget.org/packages/Npgsql.EntityFrameworkCore.PostgreSQL).
52-
53-
For the full documentation, please visit the Npgsql website at [https://www.npgsql.org](https://www.npgsql.org).

0 commit comments

Comments
 (0)