Use temp sqlite file to enable spatialite function