Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

ORM for notion databases #33

Closed
aahnik opened this issue May 20, 2021 · 2 comments
Closed

ORM for notion databases #33

aahnik opened this issue May 20, 2021 · 2 comments

Comments

@aahnik
Copy link
Contributor

aahnik commented May 20, 2021

Django ORM, sqlalchemy etc, are examples where you write python classes and call python functions, but under the hood SQL queries get carried out.

It would be great to have an ORM, that under the hood would carry out various interactions using Notion API. For the end user, it will be a high level experience.

Example usage

# a vague example usage

class Student(NotionBaseModel):
    name: Title
    address: Text
    last_edited: LastEditedTime

student = Student("Aahnik","India") # will add a row to the table
@Jeadie
Copy link

Jeadie commented May 20, 2021

I think you will find this is very similar to the implementation I am working on using dataclasses for easy instantiation and access.

@ramnes
Copy link
Owner

ramnes commented May 20, 2021

Let's make this a discussion. :)

@ramnes ramnes closed this as completed May 20, 2021
Repository owner locked and limited conversation to collaborators May 20, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants