mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
SQLServer: Store LibSQL database files in the standard data directory
This also allows for overriding the path. Ladybird will want to store the database files in a subdirectory of the standard data directory that contains the Ladybird application name. Fixes #16000.
This commit is contained in:
parent
49d74ee288
commit
b3e287342f
5 changed files with 23 additions and 12 deletions
|
@ -18,7 +18,7 @@ class DatabaseConnection final : public Core::Object {
|
|||
C_OBJECT_ABSTRACT(DatabaseConnection)
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<DatabaseConnection>> create(DeprecatedString database_name, int client_id);
|
||||
static ErrorOr<NonnullRefPtr<DatabaseConnection>> create(StringView database_path, DeprecatedString database_name, int client_id);
|
||||
~DatabaseConnection() override = default;
|
||||
|
||||
static RefPtr<DatabaseConnection> connection_for(u64 connection_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue