Thanks Tony

On Thursday, October 4, 2018 at 3:31:11 PM UTC+2, Anthony wrote:
>
> Its just a standard DAL instance, specifying a SQLite memory database 
> (which will only live as long as the request):
>
> temp_db = DAL('sqlite:memory')
> temp_db.define_table('my_csv_temp_table', ...)
> temp_db.my_csv_temp_table.import_from_csv_file(...)
> grid = SQLFORM.smartgrid(temp_db.my_csv_temp_table)
>
> Anthony
>
> On Wednesday, October 3, 2018 at 10:20:00 AM UTC-4, mostwanted wrote:
>>
>> I like the first suggestion* (You could import into a 
>> "sqlite:memory....."), *how does it work though???
>>
>> On Wednesday, October 3, 2018 at 4:13:17 PM UTC+2, Anthony wrote:
>>>
>>> Do you mean without importing the CSV data into a database? If so, then 
>>> no. You could import into a "sqlite:memory" database (though that will load 
>>> the data on every request, as the in memory database will disappear at the 
>>> end of each request). Alternatively, maybe just load the data into a 
>>> temporary db table and truncate the table when you need to start fresh.
>>>
>>> Anthony
>>>
>>> On Wednesday, October 3, 2018 at 3:15:36 AM UTC-4, mostwanted wrote:
>>>>
>>>> Is it possible for me read information from a CSV file saved somewhere 
>>>> in my computer into my application through SQLFORM.smartgrid without 
>>>> uploading the CSV file into the application?
>>>>
>>>> Regards
>>>>
>>>> Mostwanted
>>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to