Function ruster::psql_restore_database[][src]

#[no_mangle]
pub extern "C" fn psql_restore_database(
    host: *const c_char,
    port: *const c_char,
    user: *const c_char,
    database: *const c_char,
    filename: *const c_char,
    verbose: *const c_char
)
Expand description

Example

// Golang
os.Getenv("PGPASSWORD");
C.psql_restore_database(
	C.CString("localhost"),
	C.CString("5432"),
	C.CString("postgres"),
	C.CString("postgres"),
	C.CString("dump.sql"),
	C.CString("true"),
);