Skip to content

Instantly share code, notes, and snippets.

@sivy
Created November 23, 2010 21:15
Show Gist options
  • Save sivy/712550 to your computer and use it in GitHub Desktop.
Save sivy/712550 to your computer and use it in GitHub Desktop.
tables
-> ;
+-----------------------------+
| Tables_in_ia2010 |
+-----------------------------+
| access |
| actions |
| actions_aid |
| authmap |
| batch |
| blocks |
| blocks_roles |
| boxes |
| cache |
| cache_block |
| cache_content |
| cache_filter |
| cache_form |
| cache_menu |
| cache_page |
| cache_update |
| cache_views |
| cache_views_data |
| comments |
| content_field_extra_info |
| content_node_field |
| content_node_field_instance |
| content_type_project |
| files |
| filter_formats |
| filters |
| flood |
| history |
| menu_custom |
| menu_links |
| menu_router |
| node |
| node_access |
| node_comment_statistics |
| node_counter |
| node_revisions |
| node_type |
| permission |
| role |
| semaphore |
| sessions |
| system |
| term_data |
| term_hierarchy |
| term_node |
| term_relation |
| term_synonym |
| url_alias |
| users |
| users_roles |
| variable |
| views_display |
| views_object_cache |
| views_view |
| vocabulary |
| vocabulary_node_types |
| watchdog |
+-----------------------------+
57 rows in set (0.10 sec)
mysql>
> db.auth('somedb','user','thepasswd')
{ state: 'read_status'
, start: [Function]
, read_status: [Function]
, check_auth_ok: [Function]
, emit: [Function]
, addListener: [Function]
, on: [Function]
, process_packet: [Function]
, write: [Function]
, store_column: [Function]
, serverStatus: {}
, connection:
{ commands:
{ begin: [Object]
, end: [Circular]
, length: 1
}
, connection:
{ fd: 7
, type: 'tcp4'
, secure: false
, _writeImpl: [Function]
, _readImpl: [Function]
, _shutdownImpl: [Function]
, _readWatcher: [Object]
, readable: true
, _writeQueue: []
, _writeQueueEncoding: []
, _writeQueueFD: []
, _writeWatcher: [Object]
, writable: true
, _connecting: false
, pscache: {}
, _decoder: [Object]
, buffer: ''
, _events: [Object]
, connected: true
}
, close: [Function]
, debug: [Function]
, auth: [Function]
, query: [Function]
, prepare: [Function]
, execute: [Function]
, terminate: [Function]
, write_packet: [Function]
, dispatch_packet: [Function]
, addListener: [Function]
, on: [Function]
, add: [Function]
, auto_prepare: true
}
}
> dump_rows
[Function: dump_rows]
> dump_rows(db.query('show tables'))
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment