Skip to content

charleeli/sproto-orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sproto-orm

sproto orm lib for database schema, can use like a ordinary lua table, inspired by lua-orm

require

support

  • basic data type: boolean, integer, string, struct, list, map
  • custom define class
  • class ref

typedef examples

you can have a look at https://github.com/cloudwu/sproto

lua code examples

local orm = require 'orm'
local type_list = (require 'typedef').parse('test.sproto', ".")
orm.init(type_list)
local obj_a = orm.create('class_a')

you need make lua first and can see more examples in test.lua.

if you want create your own typedef syntax, you can see typedef.lua.

About

sproto orm lib for database schema, inspired by lua-orm(https://github.com/pigparadise/lua-orm).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published