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 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Joakim Saario
  • aurweb
  • Repository
Switch branch/tag
  • aurweb
  • web
  • lib
  • aur.inc.php
Find file BlameHistoryPermalink
  • Dan McGee's avatar
    aur.inc.php: allow all functions using DB to take handle as arg · 242f7afb
    Dan McGee authored Aug 10, 2011
    
    
    This prevents needless calls to db_connect() if we already have a
    reference to a handle we can pass into a function. Although the current
    underlying implementation using mysql_connect() will return the same
    connection if all parameters are the same, this might not be true if we
    switch to a more modern (e.g. PDO) interface.
    
    In the face of safe transactions, it is extremely important all actions
    are being taken over the same connection to the database.
    
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>
    Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
    242f7afb