agnostik | Executor Agnostic Runtime that can run your futures | Reactive Programming library
kandi X-RAY | agnostik Summary
kandi X-RAY | agnostik Summary
Agnostik is a layer between your application and the executor for your async stuff. It lets you switch the executors smooth and easy without having to change your applications code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of agnostik
agnostik Key Features
agnostik Examples and Code Snippets
Community Discussions
Trending Discussions on agnostik
QUESTION
I have a weird problem...
I get datas from a GoogleSheet with the API. Then I insert those data in a database.
But the problem, it's when I insert those data in the database, the blank cells are replaced by the above data. I don't want it, if I have a blank cell, I want to insert it in the database like a null value.
For example in this picture, when I insert the data, that will insert "cynthia itua" and not just "cynthia" :firstname / lastname
Here a screenshot of the table. Table structure
What I need to do ?
Here my code : The StrAdaptator, DataAdaptator and PhoneAdaptator are just few class to format the data.
...ANSWER
Answered 2019-Nov-29 at 16:34Your problem is that you don't reset $fields
on each loop turn, so when $row
is empty, it stays with the previous values.
Either try with the follwing modified code, or add a else
if you need to specifically insert null values using $fields
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install agnostik
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page