Skip to content

A simple Postgres SQL generator using excel file as modeling input.

License

Notifications You must be signed in to change notification settings

lxyangfan/psql-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psql-generator

A simple Postgres SQL generator using excel file as modeling input.

Example:

    @Test
    public void testGenerateSql() throws Exception {

        TableGenerateParam param = new TableGenerateParam();
        param.setOutputPath("out.sql"); // 1. set the output sql path
        URL resource = TableRepositoryTest.class.getClassLoader().getResource("excel/schema.xlsx");  // 2. set input excel model file
        String filepath = resource.getPath();
        param.setInputExcelPath(filepath);
        TableService.generate(param); // 3. do the work

    }

About

A simple Postgres SQL generator using excel file as modeling input.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published