Starcounter
HomeDownloadDocsCommunity
2.3.1
2.3.1
  • Starcounter Documentation
  • Getting Started
  • Starcounter
    • Collapsing the Stack
      • Complexity and Scalability Tradeoff
      • The Future of Micro-Services
      • 10 Benefits of Collapsing the Stack
    • Integrated Database and Web Server
  • Hello World - Tutorial
    • Create a Database Class
    • Create a Real Time UI
    • First Interactive UI
    • Computed Properties
    • Expense Tracker
    • Cancel and Delete
    • The Next Step
  • Guides
    • Database
      • Database Classes
      • Data manipulation
      • Object Identity and Object References
      • Querying with SQL
      • Data Types
      • Relations
      • Inheritance
      • Sharing data
      • Database Configuration
      • Comparing Database Objects
      • Referential Integrity and Constraints
    • SQL
      • Identifiers
      • Path Expressions
      • Data operators
      • Joins
      • Aggregates
      • Comparisons and Logical Operators
      • Sorting
      • Fetch
      • Offset Key
      • Indexes
      • Literals
      • Query Plan Hints
      • Reserved words
      • Query for Database Classes
      • SQL Isolation Between Applications
    • Transactions
      • Short-Running Transactions
      • Long running transactions
      • Using Transactions
      • Running Background Jobs
      • Commit Hooks
    • Typed JSON
      • JSON-by-example
      • Code-Behind
      • Data Bindings
      • Callback Methods
      • Responding with JSON
      • Accepting JSON in Requests
      • Primitive Arrays and Single Value Types
      • Typed JSON Internals
    • Blendable Web Apps
      • Starcounter MVVM
      • Palindrom
      • Client-Side Stack
      • Sessions
      • HTML Views
      • App Shell
      • Web Components
      • View Attaching
      • View Composing
      • HTML Compositions
      • HTML Views Blending Guidelines
      • Avoiding CSS conflicts
      • Debugging
    • Network
      • HTTP
      • Internal Self Calls
      • Middleware
      • Anonymous or Substitute Handlers
      • URL Aliases and Redirects
      • Network Gateway
      • Static File Server
      • External HTTP Calls
      • WebSocket
      • Avoiding URI conflicts
      • TCP Sockets
      • UDP Sockets
    • Publishing Apps
    • Working with Starcounter
      • Release Channels
      • Starting and Stopping Apps
      • Administrator Web UI
      • Star CLI
      • StarAdmin CLI
      • StarDump CLI
      • Working in Visual Studio
      • Error Log
      • Using HTTPS on NGINX
      • Using HTTPS on IIS
      • Run Starcounter in Production
      • Weaver
      • Investigating App Crashes
      • Configuration Structure
      • Database Refactoring
      • Using Unload/Reload to Modify Database Schema
      • Kernel Questions and Answers
      • Log Files
  • Cookbook
    • Attach an HTTP Request to an Existing Long-Running Transaction
    • Cookie-Based Authentication
    • Timestamp on Object Creation
    • Creating Strongly Typed JSON Collections
    • Migrating From 2.2 to 2.3+
    • Multiple Pages
    • Icons
    • Proposed Project Structure
    • Acceptance Testing with Selenium
    • Requesting a User to Authenticate
    • How to delete unused tables and columns
Powered by GitBook
On this page
  • Introduction
  • Configuration File
  • Configuration Options
  1. Guides
  2. Database

Database Configuration

PreviousSharing dataNextComparing Database Objects

Last updated 7 years ago

Introduction

The database can be configured in three different ways: with the , in the , or directly in the configuration file.

Configuration File

By default, the database configuration file is located inside the server directory Databases\[DatabaseName]\[DatabaseName].db.config. Further instructions on finding the database configuration file can be found on the page.

The options in this file can be configured either directly in the file or when creating the database with the . Alternatively, a limited subset of the options can be configured from the .

For configurations regarding the network gateway, check the page.

Configuration Options

Here are the most important database configuration options with their default values:

  1. Should edition libraries be loaded in databases: LoadEditionLibraries: true

  2. Should JSON responses be wrapped in application name: WrapJsonInNamespaces: true

  3. Should applications be forced to register handlers starting with application name prefix: EnforceURINamespaces: false

  4. Should JSON responses from multiple applications be merged: MergeJsonSiblings: true

  5. Should the request filters be enabled (previously middleware filters): RequestFiltersEnabled: true

  6. Should static files HTTP responses have a special header X-File-Path that contains a full path to the actual file on the server (default value is False). This HTTP header is often useful for debugging purposes, but should be disabled in production: XFilePathHeader: true

  7. The HTTP port bound to the database: DefaultUserHttpPort: 8080

staradmin CLI
Administrator
Configuration Structure
Staradmin CLI
Administrator
Network Gateway