Class SQLiteConfig
java.lang.Object
dev.rafex.ether.database.sqlite.config.SQLiteConfig
Configuration for SQLite database connections.
Provides settings for journal mode, synchronous behavior, and other SQLite-specific optimizations.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether auto-vacuum is enabled.static SQLiteConfig.Builderbuilder()Creates a new builder with default values: Journal mode:JournalMode.WALSynchronous mode:SynchronousMode.NORMALForeign keys: enabled (true) Busy timeout: 5000ms Case-sensitive LIKE: disabled (false) Recursive triggers: disabled (false) Auto-vacuum: disabled (false)intReturns the busy timeout in milliseconds.booleanReturns whether LIKE operator is case-sensitive.static SQLiteConfigdefaults()Returns the default configuration.booleanbooleanReturns whether foreign key constraints are enabled.inthashCode()Returns the journal mode.booleanReturns whether recursive triggers are enabled.Returns the synchronous mode.toString()
-
Method Details
-
journalMode
-
synchronousMode
Returns the synchronous mode.- Returns:
- synchronous mode, never
null
-
foreignKeys
public boolean foreignKeys()Returns whether foreign key constraints are enabled.- Returns:
trueif foreign keys are enabled
-
busyTimeout
public int busyTimeout()Returns the busy timeout in milliseconds.- Returns:
- busy timeout in milliseconds
-
caseSensitiveLike
public boolean caseSensitiveLike()Returns whether LIKE operator is case-sensitive.- Returns:
trueif LIKE is case-sensitive
-
recursiveTriggers
public boolean recursiveTriggers()Returns whether recursive triggers are enabled.- Returns:
trueif recursive triggers are enabled
-
autoVacuum
public boolean autoVacuum()Returns whether auto-vacuum is enabled.- Returns:
trueif auto-vacuum is enabled
-
equals
-
hashCode
-
toString
-
builder
Creates a new builder with default values:- Journal mode:
JournalMode.WAL - Synchronous mode:
SynchronousMode.NORMAL - Foreign keys: enabled (
true) - Busy timeout: 5000ms
- Case-sensitive LIKE: disabled (
false) - Recursive triggers: disabled (
false) - Auto-vacuum: disabled (
false)
- Returns:
- a new builder
- Journal mode:
-
defaults
Returns the default configuration.- Returns:
- default configuration
-