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

feat(structured data) core endpoints to CRU rows #2478

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

fontanierh
Copy link
Contributor

@fontanierh fontanierh commented Nov 10, 2023

list, get and upsert DB rows

remaining code to complete #2210

@fontanierh fontanierh force-pushed the feat/structure-data-core-endpoints-rows branch from d824f31 to 9af8435 Compare November 10, 2023 10:35
Base automatically changed from feat/structure-data-core-endpoints to main November 10, 2023 10:36
@fontanierh fontanierh force-pushed the feat/structure-data-core-endpoints-rows branch from 9af8435 to d8e455b Compare November 10, 2023 10:38
@fontanierh fontanierh force-pushed the feat/structure-data-core-endpoints-rows branch from d8e455b to 91ea7ea Compare November 10, 2023 11:11
@fontanierh fontanierh changed the title wip Feat/structured data core endpoints rows feat(structured data) core endpoints to CRU rows Nov 10, 2023
core/bin/dust_api.rs Show resolved Hide resolved
get(databases_rows_retrieve),
)
.route(
"/projects/:project_id/data_sources/:data_source_id/databases/:database_id/rows",
Copy link
Contributor

Choose a reason for hiding this comment

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

should be tables/table_id ?

struct DatabasesRowsListQuery {
offset: usize,
limit: usize,
table_id: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's a bad design to fetch all at once. We never want to do something with 2 rows from different tables and can always parallelize

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We never want to do something with 2 rows

We kind of do when we generate the schema from scratch though, no ?

@fontanierh
Copy link
Contributor Author

as per slack, merging and addressing comment in #2489

@fontanierh fontanierh merged commit da7a0ee into main Nov 10, 2023
2 checks passed
@fontanierh fontanierh deleted the feat/structure-data-core-endpoints-rows branch November 10, 2023 15:23
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