Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 87
    • Issues 87
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • aurweb
  • Merge requests
  • !71

Use SQLAlchemy Declarative API for ORM Models

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kevin Morris requested to merge kevr/aurweb:pu_declarative into pu Jun 10, 2021
  • Overview 3
  • Commits 3
  • Pipelines 14
  • Changes 31

The Declarative API is more modern and common than the classical mapping API which is currently used. The declarative API allows us to more easily customize ORM model attributes, like constraints and table arguments.

Now, aurweb.models.declarative.Base should be the base class of all aurweb ORM models.

In addition, this MR adds the PackageVote model.

Edited Jun 10, 2021 by Kevin Morris
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: pu_declarative