Coder Social home page Coder Social logo

idoubi / sql2struct Goto Github PK

View Code? Open in Web Editor NEW
526.0 526.0 116.0 2.02 MB

A developer-friendly tool for transfering sql statement to go struct.

Home Page: https://dou.tools/sql2struct/

License: MIT License

CSS 2.11% HTML 2.40% JavaScript 5.47% Less 5.44% TypeScript 84.59%
go golang sql

sql2struct's People

Contributors

idoubi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sql2struct's Issues

500

下载不到了

invalid sql

create table dpi_bookinfo_test.book_info
(
	id bigint auto_increment
		primary key,
	name varchar(255) default '' not null comment '书名',
	author varchar(32) default '' not null comment '作者',
	tag varchar(64) default '' not null comment '标签',
	cover varchar(1024) default '' not null comment '封面',
	multi_cover tinyint(1) default 0 not null,
	status int default 1 not null comment '0完结,1连载中',
	introduction text null comment '简介',
	source varchar(32) default '' not null comment '来源',
	link varchar(512) default '' not null comment '连接地址',
	score double default 0 not null,
	read_user_num int default 0 not null,
	last_chapter varchar(1024) default '' not null,
	last_update varchar(64) default '' not null,
	words int default 0 not null,
	md5 varchar(64) default '' not null,
	create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间',
	update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP,
	constraint book_info_name_author_uindex
		unique (name, author)
)
comment '书籍信息';

create index book_info_md5_index
	on dpi_bookinfo_test.book_info (md5);


生成struct与预期结果不符

原始sql准确无误,由于涉及业务,比较敏感无法粘贴原始sql
但是300多个字段,最后struct只生成了不到100个

protobuf & thrift 转 TS

hello,我这边遇到一些遗留问题,一些接口定义转TS更合适,所以想问下protobuf & thrift 转 TS 可以支持下不

可以弄成一个网页吗?

我觉得可以弄成一个网页,点开这个网页就能用。不需要按照插件。
不需要部署到服务器里。把整个网页所需文件打包进一个文件夹就行。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.