书栈网 · BookStack 本次搜索耗时 0.016 秒,为您找到 179 个相关结果.
  • Variables

    425 2020-09-03 《PonyLang Tutorial》
    Local variables Var vs. let Fields Embedded Fields Globals Shadowing Like most other programming languages Pony allows you to store data in variables. There are a few differ...
  • Creating the database object

    Creating the database object Creating the database object Entities in Pony are connected to a database. This is why we need to create the database object first. In the Python in...
  • Setup

    Setup Setup For your first steps, simply follow Getting Started with Pony to create the database object and define your models. You may want to make use of Pydantic’s inbuilt B...
  • Symbol Lookup Cheatsheet

    343 2020-09-03 《PonyLang Tutorial》
    Pony, like just about any other programming language, has plenty of odd symbols that make up its syntax. If you don’t remember what one means, it can be hard to search for them. B...
  • Declaring an entity

    Declaring an entity Declaring an entity Each entity belongs to a database. That is why before defining entities you need to create an object of the Database class: from pony ...
  • Query object

    Query object Query object The generator expression and lambda queries return an instance of the Query class. Below is the list of methods that you can apply to it. class Query...
  • Use Statement

    400 2020-09-03 《PonyLang Tutorial》
    Use names Scheme indicators To use a package in your code you need to have a use command. This tells the compiler to find the package you need and make the types defined in it ...
  • Overview

    393 2020-09-03 《PonyLang Tutorial》
    Unto all code, good or bad, comes the needs to test it. Verification that our code does what we expect is very important. Over the last 20 years, there has been an explosion in di...
  • Overview

    389 2020-09-03 《PonyLang Tutorial》
    Welcome to the appendix; the land of misshapen and forgotten documentation. Ok, not really forgotten just… ‘lesser’ sounds wrong. Some of this material could get some loving and b...
  • Many-to-many relationship

    Many-to-many relationship Many-to-many relationship In order to create many-to-many relationship you need to define both ends of the relationship as Set attributes: class Pr...