File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl v2::HostConnection for OutboundMysql {
5353 . await
5454 . map_err ( |e| v2:: Error :: ConnectionFailed ( format ! ( "{e:?}" ) ) ) ?,
5555 )
56- . map_err ( |_| v2:: Error :: Other ( "too many connections" . into ( ) ) )
56+ . map_err ( |_| v2:: Error :: ConnectionFailed ( "too many connections" . into ( ) ) )
5757 . map ( Resource :: new_own)
5858 }
5959 . await )
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl v2::HostConnection for OutboundPg {
5656 . await
5757 . map_err ( |e| v2:: Error :: ConnectionFailed ( format ! ( "{e:?}" ) ) ) ?,
5858 )
59- . map_err ( |_| v2:: Error :: Other ( "too many connections" . into ( ) ) )
59+ . map_err ( |_| v2:: Error :: ConnectionFailed ( "too many connections" . into ( ) ) )
6060 . map ( Resource :: new_own)
6161 }
6262 . await )
Original file line number Diff line number Diff line change 11interface mysql {
22 use fermyon :spin /rdbms-types . {parameter-value , row-set }
33
4- /// Errors related to interacting with Mysql .
4+ /// Errors related to interacting with MySQL .
55 variant error {
66 connection-failed (string ),
77 bad-parameter (string ),
@@ -10,9 +10,9 @@ interface mysql {
1010 other (string )
1111 }
1212
13- /// A connection to a mysql database.
13+ /// A connection to a MySQL database.
1414 resource connection {
15- /// Open a connection to the Postgres instance at `address` .
15+ /// Open a connection to the MySQL instance at `address` .
1616 open : static func (address : string ) -> result <connection , error >
1717
1818 /// query the database: select
You can’t perform that action at this time.
0 commit comments