k_vasen
k_vasen
Explore posts from servers
DTDrizzle Team
Created by k_vasen on 8/26/2024 in #help
Copying Data from Backedup Sqlite
I am using better-sqlite3 with multiciphers. I wish to add a feature where user can backup their current database and load it in future. I have backed up successfully. How to load those backed up data into the current db. I have drop all tables in the current db. and load tables and data from the backed up db.
1 replies
KPCKevin Powell - Community
Created by k_vasen on 8/25/2024 in #front-end
Creating a Array of objects from the union type.
Consider
type Gender = "Male" | "Female"
type Gender = "Male" | "Female"
I want to create a custom array of object with a prop value to be in Gender Union
type SelectOptions = {
label: string,
value: // Either Male or Female
}[]. // I want both Male and Female SelectOption object to be present
type SelectOptions = {
label: string,
value: // Either Male or Female
}[]. // I want both Male and Female SelectOption object to be present
34 replies