peewee Documentation Release 3.6.0Non-integer Primary Keys, Composite Keys and other Tricks Self-referential foreign keys Circular foreign key dependencies Querying Creating a new record Bulk inserts Updating existing records Atomic updates records Counting records Aggregating records Retrieving Scalar Values Window functions Retrieving row tuples / dictionaries / namedtuples Returning Clause Common Table Expressions Foreign Keys and Joins sqlite driver Sqlcipher backend Postgresql Extensions MySQL Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database0 码力 | 377 页 | 399.12 KB | 1 年前3
 peewee Documentation
Release 3.6.0Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best to begin with your data having to worry. Things get interesting when we set up relationships between models using foreign key relationships. This is simple with peewee: class Pet(Model): owner = ForeignKeyField(Person, backref='pets') our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s begin by populating the database0 码力 | 302 页 | 1.02 MB | 1 年前3
 peewee Documentation Release 3.4.0Non-integer Primary Keys, Composite Keys and other Tricks Self-referential foreign keys Circular foreign key dependencies Querying Creating a new record Bulk inserts Updating existing records Atomic updates Functions, Subqueries and “Raw expressions” Security and SQL Injection Window functions Retrieving row tuples / dictionaries / namedtuples Returning Clause Query operators Three valued logic Adding user-defined sqlite driver Sqlcipher backend Postgresql Extensions MySQL Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database0 码力 | 349 页 | 382.34 KB | 1 年前3
 peewee Documentation
Release 3.4.0Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best to begin with your data our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s begin by populating the database is_relative=True) herb = Person.create(name='Herb', birthday=date(1950, 5, 5), is_relative=False) To update a row, modify the model instance and call save() to persist the changes. Here we will change Grandma’s name0 码力 | 284 页 | 1.03 MB | 1 年前3
 peewee Documentation
Release 3.3.0Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best to begin with your data our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s begin by populating the database is_relative=True) herb = Person.create(name='Herb', birthday=date(1950, 5, 5), is_relative=False) To update a row, modify the model instance and call save() to persist the changes. Here we will change Grandma’s name0 码力 | 280 页 | 1.02 MB | 1 年前3
 peewee Documentation
Release 3.5.0Non-integer Primary Keys, Composite Keys and other Tricks Self-referential foreign keys Circular foreign key dependencies Querying Creating a new record Bulk inserts Updating existing records Atomic updates records Counting records Aggregating records Retrieving Scalar Values Window functions Retrieving row tuples / dictionaries / namedtuples Returning Clause Foreign Keys and Joins Implementing Many to Many sqlite driver Sqlcipher backend Postgresql Extensions MySQL Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database0 码力 | 347 页 | 380.80 KB | 1 年前3
 peewee Documentation
Release 3.5.0Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best to begin with your data our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s begin by populating the database is_relative=True) herb = Person.create(name='Herb', birthday=date(1950, 5, 5), is_relative=False) To update a row, modify the model instance and call save() to persist the changes. Here we will change Grandma’s name0 码力 | 282 页 | 1.02 MB | 1 年前3
 peewee Documentation Release 3.0.0Non-integer Primary Keys, Composite Keys and other Tricks Self-referential foreign keys Circular foreign key dependencies Querying Creating a new record Bulk inserts Updating existing records Atomic updates Functions, Subqueries and “Raw expressions” Security and SQL Injection Window functions Retrieving row tuples / dictionaries / namedtuples Returning Clause Query operators Three valued logic Adding user-defined Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best to begin with your data0 码力 | 319 页 | 361.50 KB | 1 年前3
 peewee Documentation Release 3.1.0Non-integer Primary Keys, Composite Keys and other Tricks Self-referential foreign keys Circular foreign key dependencies Querying Creating a new record Bulk inserts Updating existing records Atomic updates Functions, Subqueries and “Raw expressions” Security and SQL Injection Window functions Retrieving row tuples / dictionaries / namedtuples Returning Clause Query operators Three valued logic Adding user-defined Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best to begin with your data0 码力 | 332 页 | 370.77 KB | 1 年前3
 sqlalchemy tutorialrepresents a column in a database table. Constructor takes name, type and other parameters such as primary_key, autoincrement and other constraints. SQLAlchemy matches Python data to the best possible generic String, MetaData meta = MetaData() students = Table('students', meta, Column('id', Integer, primary_key=True), Column('name', String), Column('lastname', String), ) The create_all() function uses the db', echo=True) meta=MetaData() students = Table('students', meta, Column('id', Integer, primary_key=True), Column('name', String), Column('lastname', String), ) meta.create_all(engine) Because echo0 码力 | 92 页 | 1.77 MB | 1 年前3
共 1000 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 100
 













