csv to core data - database

I'm new to core data. How do I go about importing a fileName.csv into an Xcode core data project. What type of app should I start with. The data does not need to change. I should be able to search for a particular object and find it. Please help. Thanks

Firstly store csv file data to NSArray refer convert-csv-format-into-nsarray link.
Now to save a NSArray/NSMutableArray in Core Data refer NSArray/NSMutableArray in Core Data link.

If the data does not change then I would suggest not using Core Data. You could import the csv data (search around on google, there are several csv parsers for Objective-C) and store that information in an NSDictionary.

Related

is it possible store PDF or HTML content in snowflake.Please help us what is the best data type to store PDF or HTML data. How to retrieve that

is it possible store PDF or HTML content in snowflake.Please help us what is the best data type to store PDF or HTML data. How to retrieve that
If you just want to store HTML or PDF for any technical reason, you can use binary date type which can store such files up to 8Mb size. However, you could not query binary date type directly in your query.
If you have to extract any information, you can use python CLI and use python libraries to extract additional information, but you can not use SQL to extract any information.
HTML can be saved as XML but you can try that as it has couple of limitation and not sure if XML parsing is available in GA or still preview.
Snowflake has new unstructured data storage and querying functionality now. You can store the PDF in a stage and use a directory table to view the file list within the stage. You can create scoped URL's, etc. to allow applications to render the PDF files, etc.

how to store data on client machine in Electron.js?

I am working on an electron project to keep inventory of a warehouse but I want to store the data on the client-side (on the client's desktop/laptop) and not on a cloud database. How do I do this? Is using an xlsx file a good idea to store the data. As it will come with an added bonus as the user can read the data outside the app if they want to in an excel sheet.
P. S: even if xslx is a way I would like to know other possible ways so I can choose which is more comfortable for me. Thank you.
Edit: sorry I forgot to mention that I might also have to store images in the data.
You have plenty of option. You can store json file and read it when application boot up. As this is node js related thing I would suggest you to use electron store
And xlsx is a good choice but that may be overkill if the thing you are storing is too simple. On windows you can store some settings in registry too. But I prefer the config version.
I have also used sqlite3 database for some app. In Android I believe many app uses sqlite approach to store local database.

How to convert a csv to xml in logic apps

I was trying to access my csv file in a blob. And trying to convert the same into an XML.
I can't find any link to read the csv file data. Can anyone please help me out with some light? I am very new in logic apps.
First, add your integration account and add the schema you want like this article.
Then click Integration account in your logic app and relate with the Intergation account you created before.
Then add Flat File Decoding to pick the schema and use Transform XML to convert csv to xml.
For more details you could refer to this article.

How to insert and retrieve picture in sqlite database in CN1

I have challenges in fetching picture saved as bytes in sqlite database in codename one. Pls is there any special way in codename one to get picture from the sqlite database?
I am using this code
byte[] img = r.getBlob(0);
pls is their anythng wrong here?. I need a snippet code that will fetch pictures from the database. Bcos my pictures must reside inside database for better calling. Thanks
I would avoid that and instead store the data as a file as the blob functionality is flaky across platforms. Save the path to the file (or its name) in sqlite and store the files in storage or filesystem.

Programmatically accessing excel files located on salesforce

I am new to the salesforce platform.The task im working on involves some excel files on salesforce. I have to write a program to analyze the data in these excel files and generate a report.I have the following questions about doing this
Do i need to programmatically download these excel files locally to my machine ?. If yes, what api should i use for this ?. An example would be really appreciated.
Is this something that can be done directly on salesforce ?
Thank You.
You have a mutltitude of choices, If you're using .NET or Java, you probably want to start with the soap API, you can run a SOQL query to access the Body field of the document object (I'm assuming you're storing these in documents). The SOAP API docs have examples for this. For other languages you'll probably want to start with the REST API, you'll be able to access the body resource of your document and get back the binary stream, again, good examples in the docs.
No.
Although you can't open an Excel document to inspect it/modify it in Apex (to the best of my knowledge), you can create one - FYI

Resources