Documentation
¶
Index ¶
- type FS
- func (m *FS) Abs(r path.Relative) path.Absolute
- func (f *FS) Close() error
- func (fsys *FS) Delete(p path.Relative, recursive bool) (err error)
- func (fsys *FS) Exists(p path.Relative) bool
- func (fsys *FS) ModTime(p path.Relative) (t time.Time, err error)
- func (fsys *FS) Reader(p path.Relative) (io.ReadCloser, error)
- func (fsys *FS) Size(file path.Relative) int64
- func (fsys *FS) Write(p path.Relative, rd io.ReadCloser, inbetween bool) (err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶ added in v0.8.0
type FS struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.8.0
New creates a new filesystem, based on a sqlite database that resides in a local file file is the location of the database file.
type Option ¶ added in v0.8.1
type Option func(*FS)
Option is an option for the dbfs
func OptBlobTable ¶ added in v0.8.1
OptBlobTable sets the name of the blob table
func OptCreateTables ¶ added in v0.8.1
func OptCreateTables() Option
OptCreateTables sets the option for creating/initializing the tables (always the default for in memory databases)
func OptFileTable ¶ added in v0.8.1
OptFileTable sets the name of the file table
func OptSqliteFlags ¶ added in v0.8.1
OptSqliteFlags sets the flags of the underlying sqlite db
Click to show internal directories.
Click to hide internal directories.