~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/schema_reader.cc

  • Committer: Jay Pipes
  • Date: 2009-04-10 05:31:39 UTC
  • mto: (971.1.47 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: jpipes@serialcoder-20090410053139-beat1rbcopkcgc4n
Changes libserialize to libdrizzledmessage per ML discussion.  All GPB messages are now in the drizzled::message namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include <iostream>
2
2
#include <fstream>
3
3
#include <string>
4
 
#include <drizzled/serialize/schema.pb.h>
 
4
#include <drizzled/message/schema.pb.h>
5
5
using namespace std;
6
6
 
7
7
/*
8
8
  Written from Google proto example
9
9
*/
10
10
 
11
 
void printSchema(const drizzle::Schema *schema)
 
11
void printSchema(const drizzled::message::Schema *schema)
12
12
{
13
13
  cout << "CREATE SCHEMA `" << schema->name() << "` ";
14
14
  if (schema->has_collation())
25
25
    return -1;
26
26
  }
27
27
 
28
 
  drizzle::Schema schema;
 
28
  drizzled::message::Schema schema;
29
29
 
30
30
  {
31
31
    // Read the existing address book.