Screens: Code generation

Template store

The Template Pack Store is the window for finding NeoSQL's official packs and packs other people have made public. You can take a pack you like as your own pack to edit, or add it straight to a project to generate code. It is the same window as the data dictionary Store; only the kind of asset differs (Data dictionary manager).

Where you can use itWebDesktopWithout signing inSigned inLocal projectsAccount projects
Where to open itWhat it does
The Store button above the list on the Template Pack Management screenTakes packs into your pack list
The Create New Template Pack card › Get from Store item on the dashboardThe same
The + Add Template Pack button in the Project settingsCode Generator tabAdds packs to this project (Generating source code)

The buttons in the first two places can be pressed only when the Store server can be reached. Otherwise they are greyed out, and hovering over them shows the This feature is available while connected to the NeoSQL server. notice.

What's on the screen

No.NameDescription
1Search fieldKeeps only the cards whose name, author or description contains what you type.
2Sort selectorThe Popular item is the order the Store sends, the Recently changed item puts the most recently changed packs first, and the Name (A→Z) item is by name.
3Official markAn official pack NeoSQL provides by default.
4Version markThe pack's latest published version. Taking it or adding it to a project uses this version. Packs that exist only on this device do not have it.
5Card buttonsDepend on whether you are signed in and where you opened the window (see below).
6PagerTwelve cards per page. The range shown and the total are on the left.
  • Private packs carry a Private mark. Private packs you own or are a member of appear only when adding packs to a project. Cards for packs on this device carry neither this mark nor the mark saying the pack is in your list.
  • Domain pack and dictionary cards also carry a language mark.

Taking a pack as your own

In the Store opened from the Template Pack Management screen or the dashboard, the card buttons depend on whether you are signed in.

Desktop without signing inSigned in (desktop, web)
Card buttonsDownloadClone, Favorite
What you getA copy of the latest published version saved on this deviceClone: a new pack in your account copied from the latest published version. Favorite: the original added read-only to your pack list
Can you edit itYesThe clone, yes. A favorite, no; clone it to edit
When the original publishes a new versionThe copy does not changeThe clone does not change. A favorite can take the new version
  1. Press the Store button above the list on the Template Pack Management screen.
  2. Search and sort to find a pack.
  3. Press the Download button if you are not signed in, or the Clone button if you are. The window closes and the pack appears in the list and opens.
  4. To use the original without editing it, press the Favorite button instead of Clone. The window stays open so you can keep choosing.
  • The Clone button (1) makes another clone each time you press it, even for the same pack.
  • The Favorite button (2) becomes the Favorited button for packs already favorited and the Owned button (3) for packs you can edit in your pack list, and cannot be pressed.
  • The Download button becomes the Downloaded button for packs already on this device and cannot be pressed.
  • Editing and publishing a pack you took, removing a favorite and taking a new version are explained in Template packs.

Adding a pack to a project

In the Store opened with the + Add Template Pack button of the Project Configuration window, the only card button is Add. It makes this project point to the pack without taking a copy.

  1. Press the + Add Template Pack button in the Project settingsCode Generator tab.
  2. Press the Add button (2) of the pack to add. The window closes and a tab for the pack appears in the Project settingsCode Generator tab.
  3. Press the Save button of the Project Configuration window.
Packs in the windowDesktop without signing inSigned in
Official and public packsShownShown
Private packs you own or are a member ofNot shownShown
Packs created or downloaded on this deviceShownShown only when the Store server cannot be reached
  • Store packs are fixed to their latest version at the time you add them. How to move to a newer version is explained in Generating source code.
  • When you add a Store pack without signing in, the pack is also downloaded to this device (it appears in your pack list). The project uses that downloaded pack, so you can generate code even when the Store server cannot be reached.
  • Packs on this device (3) have no version. The project uses the working copy saved on this device, so editing and saving that pack changes the project's results right away.
  • You can add the same pack more than once. Cards of packs already added still have the Add button, together with a mark saying so.
  • Packs in your pack list carry a mark saying so: your packs and favorites when signed in, and packs downloaded to this device when not.

Importing a pack from your computer

When you are not signed in or the Store server cannot be reached, an Import... button (1) appears next to the sort selector. It imports a pack exported as a folder or ZIP file and adds it here.

  1. Press the Import... button and choose the pack folder or ZIP file.
  2. The imported pack appears as a card at the front of the list. Press that card's Add button.
  • The imported pack is also saved to your pack list. If the server cannot be reached and the list is empty, the Cannot reach the store. Use Import to add a pack from this computer to the list. notice appears.

Things to keep in mind

  • Anyone can publish a public pack. Templates run while code is generated, and installing writes files into your project folder. Take a pack you have not used before, read its templates in Template packs, and only then add it to a project.
  • Packs taken without signing in exist only on this device. Signing in does not move them to your account. To use them on another device, export the pack and take it there. Packs you created on this device without signing in can still be opened and edited after you sign in, and projects using them can still generate code.
  • Private packs added while signed in cannot be read without signing in. A project opened without signing in cannot generate code with such a pack.