25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

deletedata().json 3.5 KiB

1
  1. {"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/CoreDataManager\/deleteData()"},"abstract":[{"text":"Deletes all fueling data from Core Data.","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["iOS"],"languages":["swift"],"tokens":[{"text":"@","kind":"attribute"},{"text":"MainActor","preciseIdentifier":"s:ScM","kind":"attribute"},{"kind":"text","text":" "},{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"deleteData","kind":"identifier"},{"kind":"text","text":"()"}]}]},{"content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"syntax":"swift","code":["func deleteData() {"," do {"," let deleteFetch = NSFetchRequest<NSFetchRequestResult>(entityName: \"FuelingTest\")"," let deleteALL = NSBatchDeleteRequest(fetchRequest: deleteFetch)"," "," try container.viewContext.execute(deleteALL)"," saveData(context: container.viewContext)"," fetchData()"," } catch {"," print (\"There is an error in deleting records\")"," }","}"],"type":"codeListing"}],"kind":"content"}],"variants":[{"paths":["\/documentation\/fueling\/coredatamanager\/deletedata()"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/CoreDataManager"]]},"kind":"symbol","metadata":{"fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"deleteData"},{"kind":"text","text":"()"}],"roleHeading":"Instance Method","title":"deleteData()","modules":[{"name":"Fueling"}],"symbolKind":"method","role":"symbol","externalID":"s:7Fueling15CoreDataManagerC06deleteC0yyF"},"references":{"doc://rpm.com.production.Scanner/documentation/Fueling/CoreDataManager/deleteData()":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"deleteData","kind":"identifier"},{"kind":"text","text":"()"}],"identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/CoreDataManager\/deleteData()","title":"deleteData()","type":"topic","url":"\/documentation\/fueling\/coredatamanager\/deletedata()","abstract":[{"type":"text","text":"Deletes all fueling data from Core Data."}],"kind":"symbol","role":"symbol"},"doc://rpm.com.production.Scanner/documentation/Fueling/CoreDataManager":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"text":"CoreDataManager","kind":"identifier"}],"type":"topic","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/CoreDataManager","kind":"symbol","title":"CoreDataManager","abstract":[],"navigatorTitle":[{"text":"CoreDataManager","kind":"identifier"}],"url":"\/documentation\/fueling\/coredatamanager","role":"symbol"},"doc://rpm.com.production.Scanner/documentation/Fueling":{"kind":"symbol","url":"\/documentation\/fueling","title":"Fueling","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","abstract":[{"type":"text","text":"The Scanner app is designed to facilitate secure and efficient fuel management operations, primarily focusing on user authentication, fuel data collection, and network communication. The app includes several key features to ensure seamless and reliable interactions between users and the backend systems, leveraging technologies like WebSockets, Core Data, and biometric authentication."}],"type":"topic","role":"collection"}}}