Choose a writable local database path. Keep db open through the following create, query and update steps. Close dependent queries, rows and mutations before closing the database.
Open a local database
db, err := stardust.Open(databasePath, stardust.Options{})
if err != nil {
return err
}
defer db.Close()
// Use db for the following create, query and update steps.See Database for storage options, locking and shutdown rules.