orm
Here are 2,503 public repositories matching this topic...
Issue type:
[ ] question
[ ] bug report
[ ] feature request
[x] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql / mariadb
[ ] oracle
[x] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
followed the docs for has manyhttp://gorm.io/docs/has_many.html for sqlilite
package main
import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/mattn/go-sqlite3"
)
type User struct {
Id string
Name string
CreditCards []CreditCard `gorm:"FOREIGNKEY:user_id;ASSOCIATION_FOREIGNKEY:id"`
}
type CreditCard struct {
Id int
Number string
UserID
Describe the bug
I'm not sure if I'm missing something but I can't generate a simple many-to-many relationship with prisma 1.34.10. It throws ✖ Valid values for the argument link are: INLINE.
To Reproduce
Steps to reproduce the behavior (MacOS):
$brew tap prisma/prisma
$brew install prisma
$prisma --version
Prisma CLI version: prisma/1.34.10 (darwin-x64) node-v1
Currently, it is very confusing how to use this new method. More thorough exemples will help us understand the right usage of this method.
Document Details
- ID: 8243b953-5de7-3123-0737-9be4ca3c08fd
- Version Independent ID: 1d1c0196-70ac-a45e-d1b7-48c55963f612
- Content: [RelationalDatabaseFaca
-
Updated
Apr 13, 2020 - Java
This is a:
-
enhancement
-
CakePHP Version: any (collections).
Since you have already used psalm and it's templates feature, I would like to suggest you to type all the collections library
Documentation?
Is the README the only documentation available for this project? I find myself having to read the source to understand the interface and features that are available (e.g., context managers, bulk_query, etc.).
In the case of bulk_query, the arguments are simply passed through to the underlying SQLAlchemy engine, with no explanation. I tracked it down in [SQLAlchemy's documentation](https:/
for example,i want the Name field search with name like 、> 、<、 is null、 ... ,not only name = ?
type Dapp struct {
UUID string `xorm:"varchar(36) 'uuid'"`
Name string
Subtitle string
Category string
Permission string
Synopsis string
Score float64
Logo string
Banner string
Snapshot string
Video
In the tutorial events there is this example:
const User = bookshelf.model('User', {
tableName: 'users',
initialize() {
this.on('saving', (model) => {
return User.forge({email: model.get('email')}).fetch().then((user) => {
if (user)
throw new Error('That email address already exists')
Given that we support CURRENT_TIMESTAMP, the lack of CURRENT_DATE feels like an omission. While you can hack it with date(now), I keep finding myself wishing there was a direct way to reference this. Given that now means CURRENT_TIMESTAMP, I think there's precedent for today meaning CURRENT_DATE. This is supported by all backends we support (and is in the ISO standard I believe).
Use php-cs-fixer
I suggest php-cs-fixer for this library
We have Javadoc published for each patch release, e.g.:
- https://www.jooq.org/javadoc/3.13.0/org.jooq/org/jooq/conf/RenderQuotedNames.html
- https://www.jooq.org/javadoc/3.13.1/org.jooq/org/jooq/conf/RenderQuotedNames.html
The latest version of the Javadoc for a minor release is currently using an x for the patch release number:
Money support?
How can we insert into SQL money type columns? I can't seem to find a type that works.
-
Updated
Apr 12, 2020 - Rust
The order of defining classes is giving an error, it shouldn't right?
class Order2(EmbeddedDocument):
pass
class TableOrder2(Document):
table = ReferenceField(Table)
orders = ListField(EmbeddedDocumentField(Order2))
timestamp = DateTimeField(default=datetime.datetime.now())
class Order2(EmbeddedDocument):
food1 = StringField()
food2=StringField()
let User = db.define("user", {
name: { type: "text", required: true, unique: true },
task_name: String,
task_data: Object,
last_seen: { type: 'date', time: true },
card_url: { type: 'text' },
});
let Group = db.define("group", {
name: { type: "text", required: true },
general_chat: { type: "text", required: true, unique: true },
admin_chat: { type: "tDB.Updateable<t_stock_document>().SetColumns(k => new t_stock_document() { OutQTY = k.OutQTY - delDoc.F_Qty ?? 0, OutFinish = false }).Where(k => k.F_ID == delDoc.RelateID).ToSql();语句中,使用??生成的Sql语句如图,运行时会报错 ,我以为是运算符优先级问题,
再加了括号试试,同样会报错,是否不支持??运算符

Issue Description
What are you doing?
I have a model that contained precomputed fields including a column that is an array of int (
tags_ids). Here is its definition :