Documentation
¶
Index ¶
- func NewSqliteDB(file string) (*sql.DB, error)
- func SaveTmpDB(file multipart.File, handler *multipart.FileHeader) (string, error)
- func TestSqlConnect() *sql.DB
- type ImportResponse
- type Request
- type Route
- type SQLiteDB
- func (s *SQLiteDB) AddRoute(route Route) error
- func (s *SQLiteDB) Close() error
- func (s *SQLiteDB) CreateTables() error
- func (s *SQLiteDB) DeleteRoute(route Route) error
- func (s *SQLiteDB) EditRoute(route Route) error
- func (s *SQLiteDB) GetRoute(url string, method string) (Route, error)
- func (s *SQLiteDB) GetRouteById(id int) (Route, error)
- func (s *SQLiteDB) GetRoutes() ([]Route, error)
- func (s *SQLiteDB) ImportDb(file_path string) error
- func (s *SQLiteDB) TableExists(tableName string) bool
- type Setting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestSqlConnect ¶
Types ¶
type ImportResponse ¶
type SQLiteDB ¶
type SQLiteDB struct { FilePath string // contains filtered or unexported fields }
func (*SQLiteDB) CreateTables ¶
func (*SQLiteDB) DeleteRoute ¶
func (*SQLiteDB) TableExists ¶
Click to show internal directories.
Click to hide internal directories.