~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/replication_services.h

  • Committer: Monty Taylor
  • Date: 2010-03-12 17:43:05 UTC
  • mfrom: (1099.4.119 translations)
  • mto: This revision was merged to the branch mainline in revision 1337.
  • Revision ID: mordred@inaugust.com-20100312174305-r5salinwg291396n
Merged latest translations from launchpad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
4
 *  Copyright (C) 2008-2009 Sun Microsystems
 
5
 *  Copyright (c) 2009-2010 Jay Pipes <jaypipes@gmail.com>
5
6
 *
6
7
 *  Authors:
7
8
 *
8
 
 *    Jay Pipes <joinfu@sun.com>
 
9
 *    Jay Pipes <jaypipes@gmail.com>
9
10
 *
10
11
 *  This program is free software; you can redistribute it and/or modify
11
12
 *  it under the terms of the GNU General Public License as published by
30
31
 
31
32
#include <vector>
32
33
 
33
 
 
34
34
namespace drizzled
35
35
{
36
36
 
323
323
   */
324
324
  void deleteRecord(Session *in_session, Table *in_table);
325
325
  /**
326
 
   * Creates a TruncateTable Statement GPB message and add it
 
326
   * Creates a CreateSchema Statement GPB message and adds it
 
327
   * to the Session's active Transaction GPB message for pushing
 
328
   * out to the replicator streams.
 
329
   *
 
330
   * @param[in] Pointer to the Session which issued the statement
 
331
   * @param[in] message::Schema message describing new schema
 
332
   */
 
333
  void createSchema(Session *in_session, const message::Schema &schema);
 
334
  /**
 
335
   * Creates a DropSchema Statement GPB message and adds it
 
336
   * to the Session's active Transaction GPB message for pushing
 
337
   * out to the replicator streams.
 
338
   *
 
339
   * @param[in] Pointer to the Session which issued the statement
 
340
   * @param[in] message::Schema message describing new schema
 
341
   */
 
342
  void dropSchema(Session *in_session, const std::string &schema_name);
 
343
  /**
 
344
   * Creates a CreateTable Statement GPB message and adds it
 
345
   * to the Session's active Transaction GPB message for pushing
 
346
   * out to the replicator streams.
 
347
   *
 
348
   * @param[in] Pointer to the Session which issued the statement
 
349
   * @param[in] message::Table message describing new schema
 
350
   */
 
351
  void createTable(Session *in_session, const message::Table &table);
 
352
  /**
 
353
   * Creates a DropTable Statement GPB message and adds it
 
354
   * to the Session's active Transaction GPB message for pushing
 
355
   * out to the replicator streams.
 
356
   *
 
357
   * @param[in] Pointer to the Session which issued the statement
 
358
   * @param[in] The schema of the table being dropped
 
359
   * @param[in] The table name of the table being dropped
 
360
   * @param[in] Did the user specify an IF EXISTS clause?
 
361
   */
 
362
  void dropTable(Session *in_session,
 
363
                     const std::string &schema_name,
 
364
                     const std::string &table_name,
 
365
                     bool if_exists);
 
366
  /**
 
367
   * Creates a TruncateTable Statement GPB message and adds it
327
368
   * to the Session's active Transaction GPB message for pushing
328
369
   * out to the replicator streams.
329
370
   *
342
383
   *
343
384
   * @param Pointer to the Session which issued the statement
344
385
   * @param Query string
345
 
   * @param Length of the query string
346
386
   */
347
 
  void rawStatement(Session *in_session, const char *in_query, size_t in_query_len);
 
387
  void rawStatement(Session *in_session, const std::string &query);
348
388
  /**
349
389
   * Returns the timestamp of the last Transaction which was sent to 
350
390
   * an applier.