recentpopularlog in

db

« earlier   
302 Found
Get Couchbase running on AWS in 5 minutes - Added June 11, 2018 at 02:12PM
aws  db  read2of  software-architecture 
12 hours ago by xenocid
302 Found
Architecture of a high performance GraphQL to SQL engine - Added May 04, 2018 at 01:21PM
db  graphql  read2of  software-architecture 
2 days ago by xenocid
Using SQL to query Kafka, MongoDB, MySQL, PostgreSQL and Redis with Presto
Using SQL to query Kafka, MongoDB, MySQL, PostgreSQL and Redis with Presto - Added April 27, 2018 at 03:38PM
data-engineering  db  kafka  read2of  sql  tutorial 
2 days ago by xenocid
Mixnode: Turn the web into a database
Use simple queries to get data from the web; on any scale, in any shape, with any complexity.
data  dev  scraper  db  sql 
7 days ago by montchr
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 
8 days ago by christianmlong
Agile Toolkit
PHP UI Framework for Agile Data
php  crud  framework  db  mysql  data  database 
9 days ago by robertoferrari

Copy this bookmark:





to read