init
This commit is contained in:
commit
fa6a4c650f
93 files changed
+6555
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package store
|
||||
|
||||
func (s *Store) RenamePath(
|
||||
oldPath string,
|
||||
newPath string,
|
||||
) error {
|
||||
|
||||
_, err := s.DB.Exec(`
|
||||
UPDATE paths
|
||||
SET path = ?
|
||||
WHERE path = ?
|
||||
`,
|
||||
newPath,
|
||||
oldPath,
|
||||
)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *Store) RemovePath(
|
||||
path string,
|
||||
) error {
|
||||
|
||||
_, err := s.DB.Exec(`
|
||||
DELETE FROM paths
|
||||
WHERE path = ?
|
||||
`,
|
||||
path,
|
||||
)
|
||||
|
||||
return err
|
||||
}
|
||||
Reference in new issue
Block a user