Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit exports from the timescale.db.models module #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schlunsen
Copy link
Collaborator

No description provided.

@schlunsen
Copy link
Collaborator Author

schlunsen commented Jan 13, 2021

Still needs testing!

Allows for django like imports:

from timescale.db.models as tsdb
tsdb.TimescaleDateTimeField()

See bencleary#2

@bencleary
Copy link
Contributor

I have been able to finally work on this now, I need a little more time to finish the docs, types and update my branches and organise it a little more before but the package can now be access as import timescale.db.models as tsdb or from timescale.db.models.fields import TimescaleDateTimeField.

As part of this the TimescaleModel has been moved to a utils package due to the idea of what the TimescaleModel represented of a utility class that groups the pieces together.

I am still working on a test suite, and planning out what needs to be tested and how we test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants