mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-15 22:00:10 -05:00
- Update connection management to use file modified time instead of filehash to detect connection changes - Avoid retrieving schema from database for check and non-interactive query execution - When retrieving plugin schema, identify the minimum set of schemas we need to fetch - to allow for multiple connections with the same schema - Update plugin manager to instantiate plugins in parallel
17 lines
206 B
Go
17 lines
206 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
func FileModTime(filePath string) (time.Time, error) {
|
|
file, err := os.Stat(filePath)
|
|
|
|
if err != nil {
|
|
return time.Time{}, err
|
|
}
|
|
|
|
return file.ModTime(), nil
|
|
}
|