azuresql

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package azuresql implements the Azure SQL Database (Microsoft.Sql) ARM REST API as a server.Handler. Real github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sql/armsql clients configured with a custom endpoint hit this handler the same way they hit management.azure.com.

MVP coverage:

PUT    .../providers/Microsoft.Sql/servers/{s}                      — Create or update server
GET    .../providers/Microsoft.Sql/servers/{s}                      — Get server
DELETE .../providers/Microsoft.Sql/servers/{s}                      — Delete server (cascade-deletes databases)
GET    .../providers/Microsoft.Sql/servers                          — List servers in RG
PUT    .../providers/Microsoft.Sql/servers/{s}/databases/{d}        — Create or update database
PATCH  .../providers/Microsoft.Sql/servers/{s}/databases/{d}        — Update database
GET    .../providers/Microsoft.Sql/servers/{s}/databases/{d}        — Get database
DELETE .../providers/Microsoft.Sql/servers/{s}/databases/{d}        — Delete database
GET    .../providers/Microsoft.Sql/servers/{s}/databases            — List databases on a server

Mutating ops return 200 OK with the resource body inline so the SDK's LRO poller terminates on the first response.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves Microsoft.Sql ARM requests against a relationaldb driver.

func New

New returns an Azure SQL handler backed by db.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for ARM Microsoft.Sql server/database paths.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP routes the request based on path shape and method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL