~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
namespace message
44
44
{
45
45
/* some forward declarations */
 
46
class Transaction;
46
47
class Statement;
47
48
class InsertHeader;
48
49
class InsertData;
388
389
enum TransformSqlError
389
390
transformTableDefinitionToSql(const Table &table,
390
391
                              std::string &destination,
391
 
                              enum TransformSqlVariant sql_variant= DRIZZLE);
 
392
                              enum TransformSqlVariant sql_variant= DRIZZLE,
 
393
                              bool with_schema= true);
392
394
 
393
395
/**
394
396
 * Appends to the supplied string an SQL expression
434
436
 
435
437
/**
436
438
 * Appends to the supplied string an SQL expression
 
439
 * representing the foreign key attributes.  The built string
 
440
 * corresponds to the SQL in a CREATE TABLE statement.
 
441
 *
 
442
 * @param[in]   Foreign Key Constraint message
 
443
 * @param[in]   Table containing this foregin key (used to get field names...)
 
444
 * @param[out]  String to append to
 
445
 *
 
446
 * @retval
 
447
 *  NONE if successful transformation
 
448
 * @retval
 
449
 *  Error code (see enum TransformSqlError definition) if failure
 
450
 */
 
451
enum TransformSqlError
 
452
transformForeignKeyConstraintDefinitionToSql(const Table::ForeignKeyConstraint &fkey,
 
453
                                             const Table &table,
 
454
                                             std::string &destination,
 
455
                                             enum TransformSqlVariant sql_variant = DRIZZLE);
 
456
 
 
457
/**
 
458
 * Appends to the supplied string an SQL expression
437
459
 * representing the field's attributes.  The built string
438
460
 * corresponds to the SQL in a CREATE TABLE statement.
439
461
 *
460
482
 
461
483
drizzled::message::Table::Field::FieldType internalFieldTypeToFieldProtoType(enum enum_field_types type);
462
484
 
 
485
/**
 
486
 * Returns true if the transaction contains any Statement
 
487
 * messages which are not end segments (i.e. a bulk statement has
 
488
 * previously been sent to replicators).
 
489
 *
 
490
 * @param The transaction to check
 
491
 */
 
492
bool transactionContainsBulkSegment(const Transaction &transaction);
 
493
 
463
494
} /* namespace message */
464
495
} /* namespace drizzled */
465
496