Create (or auto-resolve) the most appropriate database adapter for the current runtime environment. Priority selection logic:
options.priority
options.type
The function never throws solely due to a native adapter absence; it falls back to next candidates. Only when no candidate can open will it bubble an error.
Create (or auto-resolve) the most appropriate database adapter for the current runtime environment. Priority selection logic:
options.priority(caller-specified) wins entirely.options.typeis mapped to a single adapter priority.The function never throws solely due to a native adapter absence; it falls back to next candidates. Only when no candidate can open will it bubble an error.