Create osutil.

This commit is contained in:
Nuno Cruces
2024-01-03 12:47:49 +00:00
parent ae850191c8
commit 17ce949c55
11 changed files with 142 additions and 96 deletions

View File

@@ -15,14 +15,14 @@ import (
"strings"
"github.com/ncruces/go-sqlite3"
"github.com/ncruces/go-sqlite3/util/fsutil"
"github.com/ncruces/go-sqlite3/util/osutil"
"github.com/ncruces/go-sqlite3/util/vtabutil"
)
// Register registers the CSV virtual table.
// If a filename is specified, [os.Open] is used to open the file.
func Register(db *sqlite3.Conn) {
RegisterFS(db, fsutil.OSFS{})
RegisterFS(db, osutil.FS{})
}
// RegisterFS registers the CSV virtual table.