Compare commits
No commits in common. "5aa1542074899e46a3e269a5460742f2359433b8" and "f0bd89759cbf17bb9a383da023f6cad586dc4f7c" have entirely different histories.
5aa1542074
...
f0bd89759c
@ -17,14 +17,14 @@ CREATE TYPE TagType AS ENUM (
|
||||
|
||||
CREATE TABLE "Post"
|
||||
(
|
||||
id VARCHAR(25) UNIQUE PRIMARY KEY,
|
||||
id VARCHAR(25) PRIMARY KEY,
|
||||
rating Rating,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
created_at TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE TABLE "Source"
|
||||
(
|
||||
id VARCHAR(25) UNIQUE PRIMARY KEY,
|
||||
id VARCHAR(25) PRIMARY KEY,
|
||||
display_name TEXT,
|
||||
domain TEXT NOT NULL UNIQUE
|
||||
);
|
||||
@ -37,8 +37,8 @@ CREATE TABLE "Tag"
|
||||
|
||||
CREATE TABLE "User"
|
||||
(
|
||||
id TEXT UNIQUE PRIMARY KEY,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
id TEXT PRIMARY KEY,
|
||||
created_at TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE TABLE "PostReference"
|
||||
@ -66,7 +66,7 @@ CREATE TABLE "UserFavorites"
|
||||
(
|
||||
user_id TEXT REFERENCES "User" (id),
|
||||
post_id TEXT REFERENCES "Post" (id),
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
created_at TIMESTAMP,
|
||||
PRIMARY KEY (user_id, post_id)
|
||||
);
|
||||
|
||||
|
@ -29,7 +29,7 @@ func NewPostgresqlConnection() OtterSpace {
|
||||
}
|
||||
}
|
||||
|
||||
func (p postgresqlConnection) Connect(_ context.Context, endpoint string, username string, password string, database string, port int, ssl string, timezone string) error {
|
||||
func (p postgresqlConnection) Connect(ctx context.Context, endpoint string, username string, password string, database string, port int, ssl string, timezone string) error {
|
||||
dsn := fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%d sslmode=%s TimeZone=%s", endpoint, username, password, database, port, ssl, timezone)
|
||||
var err error
|
||||
|
||||
|
Reference in New Issue
Block a user