Skip to content

Commit 2e79454

Browse files
committed
fix doc
1 parent 69a8b34 commit 2e79454

4 files changed

Lines changed: 23 additions & 21 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ _build
22
target
33
.mooncakes/
44
.DS_Store
5-
.moonagent
5+
.moonagent
6+
.codex

‎README.mbt.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Postgres.mbt
22

3+
A secure, easy-to-use PostgreSQL client library for MoonBit with an included connection pool.
4+
35
### Packages
46

57
- `moonbit-community/postgres/client`: low-level PostgreSQL client
@@ -9,6 +11,9 @@ The `pgpool` package is meant for connection reuse and PostgreSQL session
911
isolation. It is useful when multiple async tasks share one MoonBit event loop
1012
but should not all queue behind the same database connection.
1113

14+
[client doc](./client/README.mbt.md)
15+
[pgpool doc](./pgpool/README.mbt.md)
16+
1217
### TLS
1318

1419
The client and pool now keep three explicit TLS modes:

‎client/codec_compat_wbtest.mbt‎

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,25 @@ fn assert_encode_format(
4747

4848
///|
4949
test "built-in ToSql compatibility remains stable" {
50-
assert_encode_ok(true , Type::bool())
51-
assert_encode_ok(1 , Type::int2())
52-
assert_encode_ok(1 , Type::int4())
53-
assert_encode_wrong_type(1 , Type::int8())
54-
assert_encode_ok(1L , Type::int8())
55-
assert_encode_ok(1U , Type::oid_type())
56-
assert_encode_ok(Float::from_double(1.5) , Type::float4())
57-
assert_encode_ok(1.5 , Type::float8())
58-
assert_encode_ok("moonbit" , Type::text())
59-
assert_encode_ok("moonbit" , Type::varchar())
60-
assert_encode_ok(b"abc" , Type::bytea())
61-
assert_encode_ok(b"1234567890abcdef" , Type::uuid())
50+
assert_encode_ok(true, Type::bool())
51+
assert_encode_ok(1, Type::int2())
52+
assert_encode_ok(1, Type::int4())
53+
assert_encode_wrong_type(1, Type::int8())
54+
assert_encode_ok(1L, Type::int8())
55+
assert_encode_ok(1U, Type::oid_type())
56+
assert_encode_ok(Float::from_double(1.5), Type::float4())
57+
assert_encode_ok(1.5, Type::float8())
58+
assert_encode_ok("moonbit", Type::text())
59+
assert_encode_ok("moonbit", Type::varchar())
60+
assert_encode_ok(b"abc", Type::bytea())
61+
assert_encode_ok(b"1234567890abcdef", Type::uuid())
6262
}
6363

6464
///|
6565
test "built-in wire formats remain stable" {
66-
assert_encode_format(true , Type::bool(), WireFormat::Binary)
67-
assert_encode_format("moonbit" , Type::text(), WireFormat::Text)
68-
assert_encode_format(
69-
(None : String?) ,
70-
Type::text(),
71-
WireFormat::Binary,
72-
)
66+
assert_encode_format(true, Type::bool(), WireFormat::Binary)
67+
assert_encode_format("moonbit", Type::text(), WireFormat::Text)
68+
assert_encode_format((None : String?), Type::text(), WireFormat::Binary)
7369
}
7470

7571
///|

‎moon.mod.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"repository": "",
1111
"license": "Apache-2.0",
1212
"keywords": [],
13-
"description": "",
13+
"description": "A secure, easy-to-use PostgreSQL client library for MoonBit with an included connection pool.",
1414
"preferred-target": "native"
1515
}

0 commit comments

Comments
 (0)