Skip to content

t.list: Check connection to prevent creating temporal database#7580

Open
saket0187 wants to merge 5 commits into
OSGeo:mainfrom
saket0187:Check-if-conn-t.list
Open

t.list: Check connection to prevent creating temporal database#7580
saket0187 wants to merge 5 commits into
OSGeo:mainfrom
saket0187:Check-if-conn-t.list

Conversation

@saket0187

Copy link
Copy Markdown
Contributor

Draft for #7576

I will update this implementation to use format="json" for t_connect once #7535 is merged.

@petrasovaa is this sufficient for this?

@github-actions github-actions Bot added temporal Related to temporal data processing Python Related code is in Python module labels Jun 17, 2026

@ninsbl ninsbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start. Some first comments.

We should probably also look at performance when a TGIS DB exists as discussed earlier. But that can well be a different issue...

Comment thread temporal/t.list/t.list.py Outdated
Comment thread temporal/t.list/t.list.py Outdated
Comment thread temporal/t.list/t.list.py
@saket0187 saket0187 marked this pull request as ready for review June 18, 2026 07:07
@saket0187 saket0187 requested a review from ninsbl June 18, 2026 07:08
ninsbl
ninsbl previously approved these changes Jun 18, 2026

@ninsbl ninsbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Comment thread temporal/t.list/t.list.py Outdated
@petrasovaa

Copy link
Copy Markdown
Contributor

Is this covered in any test?

@petrasovaa

Copy link
Copy Markdown
Contributor

Also, should CSV return at least the header instead of nothing?

@saket0187

Copy link
Copy Markdown
Contributor Author

Also, should CSV return at least the header instead of nothing?

This code matches the current CSV output behavior. If a native TGIS DB exists but is empty, t.list currently bypasses the header logic and outputs an empty file without a header anyway.

@github-actions github-actions Bot added the tests Related to Test Suite label Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Python Related code is in Python temporal Related to temporal data processing tests Related to Test Suite

Projects

Development

Successfully merging this pull request may close these issues.

3 participants