Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectTableQuery ¶
select_table is used for generating a query for selecting a table table field Params:
table: table to generate the update query for. limit: < 0 will cause assume you don't want a limit
return:
the error
func UpdateTableQuery ¶
update_tables is used for handling the update process table field Params:
table: table to generate the update query for.
return:
the error
Types ¶
type PostgreSQL ¶
type PostgreSQL struct { DB *sql.DB IPAddress string PostgresPassword string PostgresUser string PostgresDB string }
Database is used to hold the connection related variables
func (*PostgreSQL) Connect ¶
func (pg *PostgreSQL) Connect() error
Connect is used to handle connecting to the database Params: return:
error from the connection setup
func (*PostgreSQL) Disconnect ¶
func (pg *PostgreSQL) Disconnect()
Close is used to handle closing the connection to the database Params: return:
error from the connection setup
Click to show internal directories.
Click to hide internal directories.