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

revisit API names for redundancy, e.g. shorten xata.database().createDatabase() to xata.database().create() #93

Closed
Tracked by #24
philkra opened this issue May 10, 2023 · 0 comments · Fixed by #95
Labels

Comments

@philkra
Copy link
Contributor

philkra commented May 10, 2023

databases

  • getDatabaseMetadata -> getMetadata
  • createDatabase -> create
  • deleteDatabase -> delete
  • updateDatabaseMetadata -> updateMetadata
  • listRegions -> getRegions

users

  • getUser -> get
  • updateUser -> update
  • deleteUser -> delete

workspaces

  • getWorkspacesList -> getWorkspaces
  • createWorkspace -> create
  • getWorkspace -> get
  • updateWorkspace -> update
  • deleteWorkspace -> delete
  • getWorkspaceMembersList -> getMembers
  • updateWorkspaceMemberRole -> updateMember
  • removeWorkspaceMember -> removeMember

branch

  • getBranchList -> getBranches
  • getBranchDetails -> getDetails
  • createBranch -> create
  • deleteBranch -> delete
  • getBranchMetadata -> getMetadata
  • updateBranchMetadata -> updateMetadata
  • getBranchStats -> getStats
  • resolveBranch -> resolve

migrations

  • getBranchMigrationHistory -> getHistory
  • getBranchMigrationPlan -> getPlan
  • executeBranchMigrationPlan -> executePlan
  • getBranchSchemaHistory -> getHistory
  • compareBranchSchemas -> compare
  • updateBranchSchemas -> update
  • previewBranchSchemaEdit -> preview
  • applyBranchSchemaEdit -> apply
  • pushBranchMigrations -> push

records

  • insertRecord -> insert
  • getRecord -> get
  • insertRecordWithID -> insertWithId
  • upsertRecordWithID -> upsertWithId
  • deleteRecord -> delete
  • updateRecordWithID -> updateWithId
  • bulkInsertTableRecords -> bulkInsert

search_and_filter

  • queryTable -> query
  • vectorSearchTable -> vectorSearch
  • askTable -> ask
  • summarizeTable -> summarize
  • aggregateTable -> aggregate

table

  • createTable -> create
  • deleteTable -> delete
  • updateTable -> update
  • getTableSchema -> getSchema
  • setTableSchema -> setSchema
  • getTableColumns -> getColumns
  • addTableColumn -> addColumn
@philkra philkra mentioned this issue May 10, 2023
@philkra philkra added the codegen Code Generator label May 10, 2023
@philkra philkra mentioned this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant