Quickstart
Open an example database, ask it a question, and watch the answer change.
1. Open the example
Section titled “1. Open the example”Go to app.saka.io. Choose Examples, then Open example on CRM Starter, a made-up sales pipeline. On a phone, Examples is behind the menu button at the top left.
2. Look at the data
Section titled “2. Look at the data”The editor opens with the Declarations sidebar. Choose Views in the rail at the far left, then open crm::Opportunity. Each row is an opportunity, and the columns show its properties, such as amount, name, and stage.
3. Ask a question
Section titled “3. Ask a question”Click New view, the plus button at the top of Views. Type this formula and press ⌘Enter, or Ctrl+Enter on Windows and Linux:
crm::pipeline_by_stageThe grid shows the total amount of the open opportunities in each stage: k is the stage, and v its total. Lead shows 342000.
4. Change the data
Section titled “4. Change the data”Press Ctrl+` to open the REPL, on macOS too. Enter:
crm::change_stage("OP-1", :Won)This marks the opportunity OP-1, worth 1000, as won. The view updates at once: Lead drops to 341000.
5. Undo
Section titled “5. Undo”Choose Edit → Undo. OP-1 is a lead again, and Lead shows 342000.
Keep your work
Section titled “Keep your work”Saka keeps databases in your browser’s memory, and closing every Saka tab discards them. To keep this one, choose File → Export Database…; see Databases.
- Learn SakaQL from the start.
- Read the app guide.