everyone, I have some troubles with postgresql in golang. I have an sql file (database.sql), and before starting my server I want to exec some command, it look's like that
CREATE TABLE forums ( id BIGSERIAL primary key, slug TEXT NOT NULL UNIQUE, title TEXT, author TEXT references users(login), threads BIGINT DEFAULT 0, posts BIGINT DEFAULT 0 );
I know, that I should use db.Exec(request), but i have many requests ("CREATE TABLE user" and others...)
I have no idea, how to do that
Help, and thanks a lot!