Skip to content

Instantly share code, notes, and snippets.

.header-nav-main {
text-align:center;
}
.header-nav-main .header-nav-item {
float:none;
display:inline-block;
}
@gamerlv
gamerlv / crontab
Last active September 26, 2019 23:49
*/5 * * * * service multicraft sync
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy import Column, String, Integer, create_engine
Base = declarative_base()
class Ban(Base):
__tablename__="ab_list"
id = Column(Integer, primary_key=True )
@gamerlv
gamerlv / notes.md
Last active December 10, 2015 08:28
This is an simple stripped down example of how I would like to see an python ORM ( Or query builder, if that's closer to this ). No need for an exact copy, just something close would do.

My main point I need are:

  • Models need to be classes, instancesable and have either a save function or something like database.insert(model)
  • Column need to be acceble in a varible fasion: model.column (eg person.firstname)
  • Models need to beable to have custom methods

I've already looked at: