

Please see the contribution guide before contributing.īy contributing to the Exposed project, you agree that your contributions will be licensed under Apache License, Version 2.0.Root = true # Unix-style newlines with a newline ending every file SQL: INSERT INTO Users (name, city, age) VALUES ( 'c ', 2, 42) SQL: INSERT INTO Users (name, city, age) VALUES ( 'b ', 1, 27) SQL: INSERT INTO Users (name, city, age) VALUES ( 'a ', 1, 5) SQL: INSERT INTO Cities (name) VALUES ( 'Munich ') SQL: INSERT INTO Cities (name) VALUES ( 'St. SQL: CREATE INDEX Users_name ON Users (name) SQL: CREATE TABLE IF NOT EXISTS Users (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR( 50) NOT NULL, city INT NOT NULL, age INT NOT NULL, CONSTRAINT FK_Users_city_ID FOREIGN KEY (city) REFERENCES Cities(id) ON DELETE RESTRICT ON UPDATE RESTRICT) SQL: CREATE TABLE IF NOT EXISTS Cities (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR( 50) NOT NULL) Import .* import .SqlExpressionBuilder.like import .ansaction object Users : Table() ") If you make the existing code better, please let us know in your PR description.Make sure you address any lint warnings.If you've added code that should be tested, add tests and ensure the test suite passes.Name your branch something that is descriptive to the work you are doing.Fork the repo and create your branch from main.However, linking your work to an existing issue is preferred. Communityĭo you have questions? Feel free to request an invitation for the kotlinlang slack and join the project conversation at our #exposed channel. Please note that we are moving away from GitHub Issues for reporting of bugs and features. Change log of improvements and bug fixes.


Check the Maven Central and read ( Getting started) to get an insight on setting up Exposed.įor more information visit the links below: H2 (versions 2.x 1.x version is deprecated and will be removed in future releases)Ĭurrently, Exposed is available for maven/gradle builds.(Also, PostgreSQL using the pgjdbc-ng JDBC driver).SamplesĬheck out the samples for a quick start. Similar to our mascot, Exposed can be used to mimic a variety of database engines and help you build applications without dependencies on any specific database engine and switch between them with very little or no changes. Our official mascot is the cuttlefish, which is well-known for its outstanding mimicry ability that enables it to blend seamlessly into any environment. With Exposed, you have two ways for database access: wrapping DSL and a lightweight DAO. Welcome to Exposed, an ORM framework for Kotlin.Įxposed is a lightweight SQL library on top of JDBC driver for Kotlin language.Įxposed has two flavors of database access: typesafe SQL wrapping DSL and lightweight Data Access Objects (DAO).
