aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMCopyTable.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-08 22:40:15 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-08 22:40:15 +0000
commit1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd (patch)
treee7a61f14749401a33bd5e4dcd39e893589f5deeb /Source/CMCopyTable.h
parent56d7a059dc5ddd905ab58a58c2878eef7fe9c9ea (diff)
downloadsequelpro-1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd.tar.gz
sequelpro-1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd.tar.bz2
sequelpro-1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd.zip
• added: "Copy as SQL INSERT" ^⌥⌘C
- up to now only available for the table content pane - supports blobs - if a primary key is given it also support (not yet loaded) blobs and long text data fields
Diffstat (limited to 'Source/CMCopyTable.h')
-rw-r--r--Source/CMCopyTable.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/CMCopyTable.h b/Source/CMCopyTable.h
index 0676267d..5da66ec2 100644
--- a/Source/CMCopyTable.h
+++ b/Source/CMCopyTable.h
@@ -35,8 +35,13 @@
@interface CMCopyTable : NSTableView
{
- NSArray* columnDefinitions;
- NSString* selectedTable;
+ id tableInstance; // the table content view instance
+ id tableData; // the actual table data source
+ id mySQLConnection; // current MySQL connection
+ NSArray* columnDefinitions; // array of NSDictionary containing info about columns
+ NSString* selectedTable; // the name of the current selected table
+
+ NSUserDefaults *prefs;
}
@@ -90,9 +95,16 @@
*/
- (NSString *)draggedRowsAsTabString:(NSArray *)rows;
+/*
+ * Generate a string in form of INSERT INTO <table> VALUES () of
+ * currently selected rows. Support blob data as well.
+ */
- (NSString *)selectedRowsAsSqlInserts;
-- (void)setTableInfoWithColumns:(NSArray *)columnDefs withTable:(NSString *)aTable;
+/*
+ * Set all necessary data from the table content view.
+ */
+- (void)setTableInstance:(id)anInstance withTableData:(id)theTableData withColumns:(NSArray *)columnDefs withTableName:(NSString *)aTableName withConnection:(id)aMySqlConnection;
@end