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)
Tue, Nov 26, 8:23 AM
Unknown Object (File)
Tue, Nov 26, 6:37 AM
Unknown Object (File)
Tue, Nov 26, 5:33 AM
Unknown Object (File)
Mon, Nov 11, 5:45 AM
Unknown Object (File)
Sat, Nov 2, 6:32 PM
Unknown Object (File)
Sat, Nov 2, 6:32 PM
Unknown Object (File)
Sat, Nov 2, 6:32 PM
Unknown Object (File)
Sat, Nov 2, 6:31 PM

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