https://kedro.org/ logo
#questions
Title
# questions
j

Jordan Barlow

09/15/2023, 9:11 AM
Is there any way to use
polars.read_database_uri
with the Polars
GenericDataSet
(to read SQL kind of like
SQLQueryDataSet
) or should I be looking to write a custom dataset for that functionality?
j

Juan Luis

09/15/2023, 9:32 AM
Hi @Jordan Barlow , from the phone so I can’t double check, but method names are autogenerated, so if you specify
format: database_uri
maybe it works? But only if the signature matches
read_csv
etc. otherwise you should create your own dataset yes
K 1
j

Jordan Barlow

09/15/2023, 9:56 AM
Apparently
filepath
is a required arg, therefore I don't think it can be used with a server database, maybe it would work with SQLite!