Skip to content

eugen252009/DataStyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataStyle

A tool to transform CSS rules into SQL queries.

License

Are you a frontend developer who doesn't feel like dealing with SQL? Then I have the perfect answer to your problem!

Transform your CSS into SQL so you can interact with the database.

Querying

Select

.table{}

transforms into

select * from table;

.table{
id;
}

transforms into

select id from table;

.table[attr="hello"]{
id;
data;
}

transforms into

select id,data from table where attr='hello';

Insert

.table{
 id="Hello";
 data="User";
}

transforms into

insert into table (id, data) values ('Hello','User');

Update

.table[attr="123"]{
  id="Hello";
  data="User";
}

transforms into

update table set id='Hello',data='User' where attr='123';

About

A tool to transform CSS rules into SQL queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published