orm   13609

« earlier    

volatiletech/sqlboiler: Generate a Go ORM tailored to your database schema.
Generate a Go ORM tailored to your database schema. - volatiletech/sqlboiler
golang  orm  sql 
10 days ago by geetarista
database - Is Functional to Relational mapping easier than Object to Relational? - Stack Overflow
In my opinion, if all databases implemented the SQL standard MULTISET() operator (e.g. Oracle does), people would no longer use ORMs for mapping (perhaps still for object graph persistence), because they could materialise nested collections directly from within the databases
database  orm 
12 days ago by beajeanm
orm - Unique fields that allow nulls in Django - Stack Overflow
class CharNullField(models.CharField):

"""
Subclass of the CharField that allows empty strings to be stored as NULL.
"""

description = "CharField that stores NULL but returns ''."

def from_db_value(self, value, expression, connection, contex):
"""
Gets value right out of the db and changes it if its ``None``.
"""
if value is None:
return ''
else:
return value


def to_python(self, value):
"""
Gets value right out of the db or an instance, and changes it if its ``None``.
"""
if isinstance(value, models.CharField):
# If an instance, just return the instance.
return value
if value is None:
# If db has NULL, convert it to ''.
return ''

# Otherwise, just return the value.
return value

def get_prep_value(self, value):
"""
Catches value right before sending to db.
"""
if value == '':
# If Django tries to save an empty string, send the db None (NULL).
return None
else:
# Otherwise, just pass the value.
return value
django  char  null  field  blank  text  string  db  sql  none  custom  orm 
13 days ago by christianmlong
(1 封私信 / 78 条消息)vert.x真的不需要ORM吗? - 知乎
有问题,上知乎。知乎是中文互联网知名知识分享平台,以「知识连接一切」为愿景,致力于构建一个人人都可以便捷接入的知识分享网络,让人们便捷地与世界分享知识、经验和见解,发现更大的世界。
vertx  orm 
14 days ago by jinwik
chrisdickinson/ormnomnom: an orm that does 80% of the work and gets out of the way for the remaining 20%
an orm that does 80% of the work and gets out of the way for the remaining 20% - chrisdickinson/ormnomnom
javascript  orm  postgresql 
28 days ago by HusseinMorsy
PyPika - Python Query Builder — PyPika 0.15.5 documentation
PyPika is a Python API for building SQL queries. The motivation behind PyPika is to provide a simple interface for building SQL queries without limiting the flexibility of handwritten SQL. Designed with data analysis in mind, PyPika leverages the builder design pattern to construct queries to avoid messy string formatting and concatenation. It is also easily extended to take full advantage of specific features of SQL database vendors.
python  sql  orm  query  builder  pika 
4 weeks ago by christianmlong

« earlier    

related tags

absence  active-record  adonet  advocacy  aggregate  android  api  arangodb  architecture  article  aspnet  average  awesome  blank  boot  bug  builder  c#  char  cocoa  code  computerscience  computing  criticism  custom  dao  dapper  data-mapper  data  dataaccess  database  databases  dates  db  ddd  delphi  development  devexpress  devops  django  documentation  dotnet  dotnetcore  driver  eager  eloquent  engine  entityframework  equal  example  explanation  f#  field  filter  floss  fp  gem  github  go  golang  graphql  guide  hacker  hibernate  history  howto  ifttt  impedance  interfaces  interoperability  ios  issue  java  javascript  jooq  js  laravel  laravel5  layer  library  list  loading  mismatch  mobile  models  msdn  multiple  mysql  ne  node  nodejs  none  not  null  oop  opensource  optimization  oracle  orms  paper  pattern  patterns  performance  persistence  php  pika  postgres  postgresql  programming  python  query  queryset  rails  reference  relational  research  resource  resources  rest  ruby  rust  scala  scalajs  scanner  software  spring  sql  sqlalchemy  sqlite  sqlite3  stackoverflow  streams  string  subqueries  subquery  swift  text  toolkit  tools  tutorial  type_providers  typescript  update  upset  vaadin  vertx  vue  web-development  web  webdev 

Copy this bookmark:



description:


tags: