Skip to content

Using SQLite instead of disk storage for egui app state #5687

Discussion options

You must be logged in to vote

It does not seem to be possible. Apparently eframe only lets you customize the path, but it always loads from a RON file stored on disk, like here:

fn init_run_state(
&mut self,
event_loop: &ActiveEventLoop,
) -> Result<&mut GlowWinitRunning<'app>> {
profiling::function_scope!();
let storage = if let Some(file) = &self.native_options.persistence_path {
epi_integration::create_storage_with_file(file)
} else {
epi_integration::create_storage(
self.native_options
.viewport
.app_id
.as_ref()
.unwrap_or(&self.app_name),
)
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by UnknownSuperficialNight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants