Page MenuHomePhabricator

[keyserver] Type ConnectionOptions passed to mysql2 library
ClosedPublic

Authored by ashoat on Jul 13 2022, 4:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 26, 2:55 PM
Unknown Object (File)
Wed, Jun 26, 12:55 AM
Unknown Object (File)
Wed, Jun 26, 12:54 AM
Unknown Object (File)
Sun, Jun 23, 9:32 PM
Unknown Object (File)
Sat, Jun 22, 7:18 PM
Unknown Object (File)
Fri, Jun 21, 4:00 PM
Unknown Object (File)
Fri, Jun 21, 10:05 AM
Unknown Object (File)
Tue, Jun 18, 10:41 AM

Details

Summary

We should type this. (We use types from the mysql library because mysql2 is meant to be a drop-in replacement, and there is no Flow libdef for mysql2.)

Depends on D4515

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Make PoolOptions and ConnectionOptions exact objects to be consistent with this runtime warning we get from mysql2:

Ignoring invalid configuration option passed to Connection: dbType. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection

This revision is now accepted and ready to land.Jul 14 2022, 9:54 AM