mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Question: Method to check it database exists #134
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrichtsfeld on GitHub (May 18, 2017).
Hi @JohnEstropia,
Is there any way to find out if a database already exists before adding it? E.g. I need to do some pre-setup stuff if the user had no database.
Thanks a lot
@JohnEstropia commented on GitHub (May 18, 2017):
@mrichtsfeld If you just need to check if the file exists, you can use
SQLiteStoreto queryFileManager:@mrichtsfeld commented on GitHub (May 18, 2017):
@JohnEstropia that works perfect for me. Thanks for the hint.
@HristiyanZahariev commented on GitHub (Jan 22, 2018):
What does pre setup stuff mean? How am I able to use this sqlite database?
@JohnEstropia commented on GitHub (Jan 22, 2018):
@HristiyanZahariev You can initialize an SQLiteStore with your own file URL: