MuPDF 1.25.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); (continues on next need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 10 Chapter 2. Using MuPDF with C MuPDF Documentation, Release 1.25.0 2.4 Multi-threading0 码力 | 259 页 | 1.11 MB | 7 月前3MuPDF 1.23.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); fz_try(ctx) (continues need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 2.4 Multi-threading First off, study the basic usage example in docs/examples/example.c0 码力 | 245 页 | 817.74 KB | 7 月前3peewee Documentation Release 3.6.0
otherwise) Integers, floats, and Decimal numbers. Boolean values Dates, times and datetimes None (NULL) Binary data Creating tables In order to start using the models, its necessary to create the tables initialization arguments Parameters accepted by all field types and their default values: null = False – allow null values index = False – create an index on this column unique = False – create a unique index for fields when objects are created. For example to have an IntegerField default to zero rather than NULL, you could declare the field with a default value: class Message(Model): context = TextField()0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
• Integers, floats, and Decimal numbers. • Boolean values • Dates, times and datetimes • None (NULL) • Binary data Creating tables In order to start using the models, its necessary to create the initialization arguments Parameters accepted by all field types and their default values: • null = False – allow null values • index = False – create an index on this column • unique = False – create a unique for fields when objects are created. For example to have an IntegerField default to zero rather than NULL, you could declare the field with a default value: class Message(Model): context = TextField() read_count0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 2.10.2
otherwise) Integers, floats, and Decimal numbers. Boolean values Dates, times and datetimes None (NULL) Binary data Creating tables In order to start using the models, its necessary to create the tables migrator = SqliteMigrator(my_db) title_field = CharField(default='') status_field = IntegerField(null=True) with my_db.transaction(): migrate( migrator.add_column('some_table', 'title', title_field) arguments Parameters accepted by all field types and their default values: null = False – boolean indicating whether null values are allowed to be stored index = False – boolean indicating whether to0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
• Integers, floats, and Decimal numbers. • Boolean values • Dates, times and datetimes • None (NULL) • Binary data Creating tables In order to start using the models, its necessary to create the migrator = SqliteMigrator(my_db) title_field = CharField(default='') status_field = IntegerField(null=True) with my_db.transaction(): migrate( migrator.add_column('some_table', 'title', title_field) arguments Parameters accepted by all field types and their default values: • null = False – boolean indicating whether null values are allowed to be stored • index = False – boolean indicating whether0 码力 | 221 页 | 844.06 KB | 1 年前3MuPDF 1.24.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); (continues on next need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 10 Chapter 2. Using MuPDF with C MuPDF Documentation, Release 1.24.0 2.4 Multi-threading0 码力 | 249 页 | 830.15 KB | 7 月前3MuPDF 1.22.0 Documentation
0; /* Create a context to hold the exception stack and various caches. */ ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot create mupdf context\n"); return EXIT_FAILURE; using these macros then might be: house build_house(plans *p) { material m = NULL; walls w = NULL; roof r = NULL; house h = NULL; tiles t = make_tiles(); fz_var(w); fz_var(r); fz_var(h); fz_try(ctx) (continues need to be cleaned up in all cases. We assume the standard C convention that it is safe to destroy NULL things. 2.4 Multi-threading First off, study the basic usage example in docs/examples/example.c0 码力 | 175 页 | 698.87 KB | 7 月前3peewee Documentation Release 3.5.0
otherwise) Integers, floats, and Decimal numbers. Boolean values Dates, times and datetimes None (NULL) Binary data Creating tables In order to start using the models, its necessary to create the tables initialization arguments Parameters accepted by all field types and their default values: null = False – allow null values index = False – create an index on this column unique = False – create a unique index for fields when objects are created. For example to have an IntegerField default to zero rather than NULL, you could declare the field with a default value: class Message(Model): context = TextField()0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.5.0
values 1.3. Example app 13 peewee Documentation, Release 3.5.0 • Dates, times and datetimes • None (NULL) • Binary data Creating tables In order to start using the models, its necessary to create the their default values: 44 Chapter 1. Contents: peewee Documentation, Release 3.5.0 • null = False – allow null values • index = False – create an index on this column • unique = False – create a unique for fields when objects are created. For example to have an IntegerField default to zero rather than NULL, you could declare the field with a default value: class Message(Model): context = TextField() read_count0 码力 | 282 页 | 1.02 MB | 1 年前3
共 380 条
- 1
- 2
- 3
- 4
- 5
- 6
- 38