mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-12 21:05:29 +01:00
Add connection parameters to database URL (#575)
This commit is contained in:
parent
df803b8c76
commit
f65cbb3a37
|
@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
## [Unreleased]
|
||||
### Fixed
|
||||
- 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
|
||||
### Changed
|
||||
|
|
|
@ -3,7 +3,7 @@ import {join} from 'path';
|
|||
export const createDatabasePath = (directory: string) => join(directory, 'db.sqlite');
|
||||
|
||||
const createDatabaseUrl = (directory: string) => {
|
||||
const url = `file:${createDatabasePath(directory)}`;
|
||||
const url = `file:${createDatabasePath(directory)}?socket_timeout=10&connection_limit=1`;
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
return url.replaceAll(/\\/g, '\\\\');
|
||||
|
|
Loading…
Reference in a new issue