You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: database.go
    path of file: ./repos/sqldef/database/sqlite3
    
    the code of the file until where you have to start completion: package sqlite3

import (
	"database/sql"
	"strings"

	"github.com/sqldef/sqldef/database"
	_ "modernc.org/sqlite"
)

type Sqlite3Database struct {
	config database.Config
	db     *sql.DB
}

func NewDatabase(config database.Config) (database.Database, error) {
	db, err := sql.Open("sqlite", config.DbName)
	if err != nil {
		return ni
    
func (d *Sqlite3Database) triggers() ([]string, error) {
	var ddls []string
	const query = "select sql from sqlite_master where type = 'trigger' and sql is not null;"
	rows, err := d.db.Query(query)
	if err != nil {
		return nil, err
	}
	defer rows.Close()

	for rows.Next() {
		var sql string
		if err = rows.Scan(&sql); err != nil {
			return nil, err
		}
		ddls = append(ddls, sql+";")
	}

	return ddls, nil
}