~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/transaction.proto

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package drizzled.message;
2
2
option optimize_for = SPEED;
3
3
 
4
 
option java_package = "org.drizzle.messages";
5
 
option java_outer_classname = "TransactionMessage";
6
 
 
7
4
import "table.proto";
8
5
import "schema.proto";
9
 
import "event.proto";
10
6
 
11
7
/*
12
8
 * @file
300
296
{
301
297
  required string schema_name = 1; /* Name of the containing schema */
302
298
  required string table_name = 2; /* Name of the table */
303
 
  optional string catalog_name = 3;  /* Name of the catalog */
304
299
}
305
300
 
306
301
/*
481
476
message DropSchemaStatement
482
477
{
483
478
  required string schema_name = 1; /* Name of the schema to drop */
484
 
  optional string catalog_name = 2; /* Name of the catalog containing the schema */
485
479
}
486
480
 
487
481
/*
547
541
    CREATE_TABLE = 8; /* A CREATE TABLE statement */
548
542
    ALTER_TABLE = 9; /* An ALTER TABLE statement */
549
543
    DROP_TABLE = 10; /* A DROP TABLE statement */
550
 
    ROLLBACK_STATEMENT = 11; /* ROLLBACK current statement */
551
544
    SET_VARIABLE = 98; /* A SET statement */
552
545
    RAW_SQL = 99; /* A raw SQL statement */
553
546
  }
575
568
  optional CreateTableStatement create_table_statement = 15;
576
569
  optional AlterTableStatement alter_table_statement = 16;
577
570
  optional DropTableStatement drop_table_statement = 17;  
578
 
  optional SetVariableStatement set_variable_statement = 18;
 
571
  optional SetVariableStatement set_variable_statement = 18;  
579
572
}
580
573
 
581
574
/*
591
584
{
592
585
  required TransactionContext transaction_context = 1;
593
586
  repeated Statement statement = 2;
594
 
  optional Event event = 3;
595
 
 
596
 
  /*
597
 
   * A single transaction in the database can possibly be represented with
598
 
   * multiple protobuf Transaction messages if the message grows too large.
599
 
   * This can happen if you have a bulk transaction, or a single statement
600
 
   * affecting a very large number of rows, or just a large transaction with
601
 
   * many statements/changes.
602
 
   *
603
 
   * For the first two examples, it is likely that the Statement sub-message
604
 
   * itself will get segmented, causing another Transaction message to be
605
 
   * created to hold the rest of the Statement's row changes. In these cases,
606
 
   * it is enough to look at the segment information stored in the Statement
607
 
   * message.
608
 
   *
609
 
   * For the last example, the Statement sub-messages may or may not be
610
 
   * segmented, but we could still need to split the Statements up into
611
 
   * multiple Transaction messages to keep the Transaction message size from
612
 
   * growing too large. In this case, the segment information in the Statement
613
 
   * submessages is not helpful if the Statement isn't segmented. We need this
614
 
   * information in the Transaction message itself.
615
 
   *
616
 
   * These values should be set appropriately whether or not the Statement
617
 
   * sub-messages are segmented.
618
 
   */
619
 
  optional uint32 segment_id = 4; /* Segment number of the Transaction msg */
620
 
  optional bool end_segment = 5;  /* FALSE if Transaction msg is split into multiples */
621
587
}