From 3864591b8da01a4aa4c76c9a501d2420e42d5681 Mon Sep 17 00:00:00 2001 From: jackbravo Date: Thu, 13 Sep 2007 14:20:03 +0000 Subject: [PATCH] Fix import documentations errors found by Rustin (imperfeito@gmail.com) --- manual/new/docs/en/database-abstraction.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/manual/new/docs/en/database-abstraction.txt b/manual/new/docs/en/database-abstraction.txt index 9833a4410..ecba16f80 100644 --- a/manual/new/docs/en/database-abstraction.txt +++ b/manual/new/docs/en/database-abstraction.txt @@ -297,20 +297,20 @@ print_r($dbs); +++ Listing sequences -$seqs = $conn->export->listSequences('events_db'); +$seqs = $conn->import->listSequences('events_db'); print_r($seqs); +++ Listing constraints -$cons = $conn->export->listTableConstraints('event_participants'); +$cons = $conn->import->listTableConstraints('event_participants'); +++ Listing table fields -$fields = $conn->export->listTableFields('events'); +$fields = $conn->import->listTableFields('events'); print_r($fields); /* prints: @@ -325,7 +325,7 @@ Array +++ Listing table indices -$idx = $conn->export->listTableIndexes('events'); +$idx = $conn->import->listTableIndexes('events'); print_r($idx); /* prints: @@ -339,7 +339,7 @@ Array +++ Listing tables -$tables = $conn->export->listTables(); +$tables = $conn->import->listTables(); print_r($tables); /* prints: @@ -358,11 +358,11 @@ Array // currently there is no method to create a view, // so let's do it "manually" $sql = "CREATE VIEW names_only AS SELECT name FROM people"; -$conn->export->exec($sql); +$conn->exec($sql); $sql = "CREATE VIEW last_ten_events AS SELECT * FROM events ORDER BY id DESC LIMIT 0,10"; -$conn->export->exec($sql); +$conn->exec($sql); // list views -$views = $conn->export->listViews(); +$views = $conn->import->listViews(); print_r($views); /* prints: