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)
Fri, Dec 20, 3:49 PM
Unknown Object (File)
Mon, Dec 16, 12:22 AM
Unknown Object (File)
Mon, Dec 16, 12:22 AM
Unknown Object (File)
Mon, Dec 16, 12:22 AM
Unknown Object (File)
Mon, Dec 16, 12:22 AM
Unknown Object (File)
Mon, Dec 16, 12:21 AM
Unknown Object (File)
Fri, Dec 13, 8:58 AM
Unknown Object (File)
Thu, Dec 12, 1:10 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