Documentation
¶
Index ¶
- type PathError
- type SQLiteFS
- type SQLiteFile
- func (f *SQLiteFile) Close() error
- func (f *SQLiteFile) Read(p []byte) (int, error)
- func (f *SQLiteFile) ReadDir(n int) ([]fs.DirEntry, error)
- func (f *SQLiteFile) Readdir(count int) ([]os.FileInfo, error)
- func (f *SQLiteFile) Seek(offset int64, whence int) (int64, error)
- func (f *SQLiteFile) Stat() (os.FileInfo, error)
- type SQLiteWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathError ¶ added in v0.4.0
PathError records an error and the operation and file path that caused it.
type SQLiteFS ¶
type SQLiteFS struct {
// contains filtered or unexported fields
}
func NewSQLiteFS ¶
NewSQLiteFS создает новый экземпляр SQLiteFS с заданной базой данных. Проверяет наличие необходимых таблиц и создает их при отсутствии.
func (*SQLiteFS) NewWriter ¶ added in v0.3.1
func (fs *SQLiteFS) NewWriter(path string) *SQLiteWriter
NewWriter creates a new writer for the specified path.
type SQLiteFile ¶
type SQLiteFile struct {
// contains filtered or unexported fields
}
SQLiteFile implements the fs.File and fs.ReadDirFile interfaces.
func NewSQLiteFile ¶
func NewSQLiteFile(db *sql.DB, path string) (*SQLiteFile, error)
NewSQLiteFile creates a new SQLiteFile instance for the given path.
func (*SQLiteFile) Close ¶
func (f *SQLiteFile) Close() error
func (*SQLiteFile) ReadDir ¶ added in v0.4.0
func (f *SQLiteFile) ReadDir(n int) ([]fs.DirEntry, error)
ReadDir implements the fs.ReadDirFile interface.
type SQLiteWriter ¶
type SQLiteWriter struct {
// contains filtered or unexported fields
}
func NewSQLiteWriter ¶
func NewSQLiteWriter(fs *SQLiteFS, path string) *SQLiteWriter
NewSQLiteWriter creates a new SQLiteWriter for the specified path. Deprecated: Use SQLiteFS.NewWriter instead.
func (*SQLiteWriter) Close ¶
func (w *SQLiteWriter) Close() error
Click to show internal directories.
Click to hide internal directories.