15 lines
311 B
JavaScript
15 lines
311 B
JavaScript
|
/* eslint-disable no-console */
|
||
|
'use strict';
|
||
|
|
||
|
const dot_parser = require ('../snippets/db/dot_parser');
|
||
|
|
||
|
/**
|
||
|
* test
|
||
|
*/
|
||
|
async function test () {
|
||
|
const data = await dot_parser.get_tables ('db_structure.dot');
|
||
|
for (const table of data)
|
||
|
console.log (dot_parser.create_table_function (table));
|
||
|
}
|
||
|
test ();
|