a geicko-2 based round robin ranking system designed to test c++ battleship submissions
battleship.dunkirk.sh
1// Copyright (C) 2019 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
2//
3// Use of this source code is governed by an MIT-style
4// license that can be found in the LICENSE file.
5
6//go:build !cgo
7// +build !cgo
8
9package sqlite3
10
11import (
12 "database/sql"
13 "database/sql/driver"
14 "errors"
15)
16
17var errorMsg = errors.New("Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub")
18
19func init() {
20 sql.Register("sqlite3", &SQLiteDriver{})
21}
22
23type (
24 SQLiteDriver struct {
25 Extensions []string
26 ConnectHook func(*SQLiteConn) error
27 }
28 SQLiteConn struct{}
29)
30
31func (SQLiteDriver) Open(s string) (driver.Conn, error) { return nil, errorMsg }
32func (c *SQLiteConn) RegisterAggregator(string, any, bool) error { return errorMsg }
33func (c *SQLiteConn) RegisterAuthorizer(func(int, string, string, string) int) {}
34func (c *SQLiteConn) RegisterCollation(string, func(string, string) int) error { return errorMsg }
35func (c *SQLiteConn) RegisterCommitHook(func() int) {}
36func (c *SQLiteConn) RegisterFunc(string, any, bool) error { return errorMsg }
37func (c *SQLiteConn) RegisterRollbackHook(func()) {}
38func (c *SQLiteConn) RegisterUpdateHook(func(int, string, string, int64)) {}