MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / create_sqlmaster_records

Function create_sqlmaster_records

db/sqlglue.c:2056–2067  ·  view source on GitHub ↗

create and write SQL statements. uses ondisk schema */

Source from the content-addressed store, hash-verified

2054
2055/* create and write SQL statements. uses ondisk schema */
2056int create_sqlmaster_records(void *tran)
2057{
2058 int table;
2059 int rc = 0;
2060 sql_mem_init(NULL);
2061 for (table = 0; table < thedb->num_dbs && rc == 0; table++) {
2062 rc = create_sqlmaster_record(thedb->dbs[table], tran);
2063 }
2064
2065 sql_mem_shutdown(NULL);
2066 return rc;
2067}
2068
2069char *sqltype(struct field *f, char *buf, int len)
2070{

Callers 13

reload_after_bulkimportFunction · 0.85
reload_db_tranFunction · 0.85
osqlcomm.cFile · 0.85
initFunction · 0.85
comdb2_reload_schemasFunction · 0.85
do_ddlFunction · 0.85
backout_schema_changesFunction · 0.85
_master_recsFunction · 0.85
sc_timepart_add_tableFunction · 0.85
sc_timepart_drop_tableFunction · 0.85

Calls 3

sql_mem_initFunction · 0.85
create_sqlmaster_recordFunction · 0.85
sql_mem_shutdownFunction · 0.85

Tested by

no test coverage detected