Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLiteFS ¶
type SQLiteFS struct {
// contains filtered or unexported fields
}
SQLiteFS реализует интерфейс http.FileSystem для файлов, хранящихся в SQLite.
func NewSQLiteFS ¶
NewSQLiteFS создает новый экземпляр SQLiteFS с заданной базой данных. Проверяет наличие необходимых таблиц и создает их при отсутствии.
type SQLiteFile ¶
type SQLiteFile struct {
// contains filtered or unexported fields
}
SQLiteFile реализует интерфейс http.File.
func NewSQLiteFile ¶
func NewSQLiteFile(db *sql.DB, path string) (*SQLiteFile, error)
NewSQLiteFile создает новый экземпляр SQLiteFile для заданного пути.
func (*SQLiteFile) Close ¶
func (f *SQLiteFile) Close() error
type SQLiteWriter ¶
type SQLiteWriter struct {
// contains filtered or unexported fields
}
func NewSQLiteWriter ¶
func NewSQLiteWriter(db *sql.DB, path string) *SQLiteWriter
func (*SQLiteWriter) Close ¶
func (w *SQLiteWriter) Close() error
Click to show internal directories.
Click to hide internal directories.