Add connection parameters to database URL (#575)

This commit is contained in:
Max Isom 2022-03-15 21:25:52 -04:00 committed by GitHub
parent df803b8c76
commit f65cbb3a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Fixed ### Fixed
- The duration of live YouTube streams is now correctly formatted again - The duration of live YouTube streams is now correctly formatted again
- Queueing massive YouTube playlists (4000+ tracks) now works
## [1.6.0] - 2022-03-13 ## [1.6.0] - 2022-03-13
### Changed ### Changed

View file

@ -3,7 +3,7 @@ import {join} from 'path';
export const createDatabasePath = (directory: string) => join(directory, 'db.sqlite'); export const createDatabasePath = (directory: string) => join(directory, 'db.sqlite');
const createDatabaseUrl = (directory: string) => { const createDatabaseUrl = (directory: string) => {
const url = `file:${createDatabasePath(directory)}`; const url = `file:${createDatabasePath(directory)}?socket_timeout=10&connection_limit=1`;
if (process.platform === 'win32') { if (process.platform === 'win32') {
return url.replaceAll(/\\/g, '\\\\'); return url.replaceAll(/\\/g, '\\\\');