blob: 2d7e8d846b4c7e09cca02e0cd6a3f60c8e2eabcc [file] [log] [blame]
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build plan9
package pkgsitedb
import (
"context"
"database/sql"
"errors"
)
var errDoesNotCompile = errors.New("github.com/lib/pq does not compile on plan9")
type Config struct {
User string
PasswordSecret string
Password string
Host string
Port string
DBName string
}
func Open(ctx context.Context, cfg Config) (_ *sql.DB, err error) {
return nil, errDoesNotCompile
}
type Module struct {
Path string
Packages []*Package
}
type Package struct {
Path string
Version string
NumImporters int
}
func QueryModule(ctx context.Context, db *sql.DB, modulePath string) (*Module, error) {
return nil, errDoesNotCompile
}