PostgresStore persists configuration and authentication metadata using PostgreSQL as backend while mirroring data to a local workspace so existing file-based workflows continue to operate.
| 37 | // PostgresStore persists configuration and authentication metadata using PostgreSQL as backend |
| 38 | // while mirroring data to a local workspace so existing file-based workflows continue to operate. |
| 39 | type PostgresStore struct { |
| 40 | db *sql.DB |
| 41 | cfg PostgresStoreConfig |
| 42 | spoolRoot string |
| 43 | configPath string |
| 44 | authDir string |
| 45 | mu sync.Mutex |
| 46 | } |
| 47 | |
| 48 | // NewPostgresStore establishes a connection to PostgreSQL and prepares the local workspace. |
| 49 | func NewPostgresStore(ctx context.Context, cfg PostgresStoreConfig) (*PostgresStore, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected