Skip to content

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

Open
schlunsen wants to merge 1 commit into
mainfrom
refactor
Open

Explicit exports from the timescale.db.models module#9
schlunsen wants to merge 1 commit into
mainfrom
refactor

Conversation

@schlunsen

Copy link
Copy Markdown
Collaborator

No description provided.

@schlunsen

schlunsen commented Jan 13, 2021

Copy link
Copy Markdown
Collaborator Author

Still needs testing!

Allows for django like imports:

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

See bencleary#2

@schlunsen
schlunsen force-pushed the main branch 2 times, most recently from 5e1cf22 to 20d40cd Compare April 20, 2021 20:23
@bencleary

Copy link
Copy Markdown
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