diff options
author | Anton Tananaev <anton@traccar.org> | 2023-03-12 11:03:25 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-03-12 11:03:25 -0700 |
commit | 08612944b879861c37b34688e0e9ef2d4a8c11a2 (patch) | |
tree | e6811c830a51dde18d6b5ef719af368003e6ea48 /src/main/java/org/traccar/config | |
parent | 4fc5d0b58b3667ee1bb81515deef6440225af76b (diff) | |
download | trackermap-server-08612944b879861c37b34688e0e9ef2d4a8c11a2.tar.gz trackermap-server-08612944b879861c37b34688e0e9ef2d4a8c11a2.tar.bz2 trackermap-server-08612944b879861c37b34688e0e9ef2d4a8c11a2.zip |
Implement memory storage
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 6aa41f85b..1b4b3a5b4 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -386,6 +386,13 @@ public final class Keys { 25.0); /** + * Enable in-memory database instead of an SQL database. + */ + public static final ConfigKey<Boolean> DATABASE_MEMORY = new BooleanConfigKey( + "database.memory", + List.of(KeyType.CONFIG)); + + /** * Path to the database driver JAR file. Traccar includes drivers for MySQL, PostgreSQL and H2 databases. If you use * one of those, you don't need to specify this parameter. */ |