Function ruster::pg_dump_database [−][src]
#[no_mangle]
pub extern "C" fn pg_dump_database(
host: *const c_char,
port: *const c_char,
user: *const c_char,
database: *const c_char,
filename_pattern: *const c_char,
verbose: *const c_char
)
Expand description
Example
// Golang
os.Getenv("PGPASSWORD");
C.pg_dump_database(
C.CString("localhost"),
C.CString("5432"),
C.CString("postgres"),
C.CString("postgres"),
C.CString("dump.sql"),
C.CString("true"),
);